:root {
  --ink: #182435;
  --muted: #566579;
  --line: #dce4ee;
  --surface: #fff;
  --backdrop: #f4f6fa;
  --action: #184bad;
  --action-hover: #123b89;
  --tint: #edf4ff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--backdrop);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .68; }
button:focus-visible, input:focus-visible { outline: 2px solid #225cc0; outline-offset: 3px; }
.topbar { background: #13223b; color: #fff; }
.topbar-content {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; max-width: 1032px; padding: 0 28px; margin: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; letter-spacing: .045em; }
.brand-mark {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  width: 28px; height: 28px; border-radius: 8px; background: #d7e8ff;
}
.brand-mark i { width: 3px; height: 9px; border-radius: 2px; background: #265292; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 6px; }
.demo-badge {
  padding: 3px 9px; border: 1px solid #536483; border-radius: 6px;
  color: #e0eaff; font-size: 12px;
}
.workspace { max-width: 1032px; margin: auto; padding: 56px 28px 48px; }
.intro { margin-bottom: 26px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(27px, 3.4vw, 37px); letter-spacing: -.045em; line-height: 1.22; }
.intro p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(205px, 256px); gap: 18px; align-items: start; }
.redemption-column { display: grid; gap: 16px; min-width: 0; }
.card-panel, .steps-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 25px;
  box-shadow: 0 3px 10px #24385906;
}
.card-panel { min-height: 214px; }
.card-panel h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }
#unlock-form { display: grid; gap: 10px; }
#unlock-form h2 { margin-bottom: 8px; }
label, .value-label { font-size: 13px; font-weight: 640; color: #44546b; }
input {
  width: 100%; min-height: 47px; padding: 10px 12px;
  border: 1px solid #bdcadc; border-radius: 8px; color: var(--ink);
}
input::placeholder { color: #67758a; }
.primary {
  min-height: 44px; padding: 9px 18px; margin-top: 4px; border: 0; border-radius: 8px;
  font-weight: 660; font-size: 14px; color: #fff; background: var(--action); justify-self: start;
}
.primary:hover { background: var(--action-hover); }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.text-button { border: 0; padding: 5px 0; background: transparent; color: var(--action); white-space: nowrap; font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.plan { margin-top: 8px; color: #3f587c; font-size: 13px; overflow-wrap: anywhere; }
.state-text { color: var(--muted); font-size: 14px; line-height: 1.65; }
#redemption .state-text { margin-top: 14px; }
#phone-row { margin-top: 18px; }
.value-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); padding: 13px; border-radius: 9px; background: #f8faff;
}
.value-row > :first-child { min-width: 0; }
.code-panel { min-height: 0; }
.code-panel h2 { font-size: 17px; }
.code-result { margin-top: 12px; }
.code-result .value-row { min-height: 62px; }
.code-waiting { justify-content: flex-start; color: var(--muted); font-size: 14px; }
.waiting-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #2d62bf; }
.code-row { background: #eaf7f1; border-color: #bddcce; }
.value-label { display: block; margin-bottom: 5px; }
samp {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: clamp(16px, 3vw, 23px); font-weight: 700; letter-spacing: .018em; overflow-wrap: anywhere;
}
.quiet {
  flex: none; padding: 7px 10px; min-height: 36px; border-radius: 7px; border: 1px solid #c4cfe0;
  background: white; color: var(--action); font-size: 13px;
}
.quiet:hover { background: var(--tint); }
.expiry {
  display: flex; justify-content: space-between; margin-top: 13px;
  color: var(--muted); font-size: 13px;
}
time { font-variant-numeric: tabular-nums; font-weight: 650; color: #263e64; }
#allocate-button { margin-top: 17px; }
.small { color: var(--muted); margin-top: 10px; font-size: 12px; }
.notice {
  margin-top: 15px; padding: 9px 10px; color: #853b07; background: #fff5e8; border-radius: 7px;
  font-size: 13px; line-height: 1.55;
}
.notice.success { color: #215d49; background: #eaf7f1; }
.steps-panel h2 { font-size: 14px; font-weight: 700; }
.steps-panel ol { list-style: none; padding: 0; margin: 17px 0 0; }
.steps-panel li {
  display: flex; align-items: center; gap: 11px; min-height: 38px; position: relative;
  color: #566579; font-size: 13px;
}
.steps-panel li:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: 27px; width: 1px; height: 23px; background: var(--line);
}
.step-dot { width: 15px; height: 15px; flex: none; border: 1px solid #aab9cc; border-radius: 50%; }
li[aria-current="step"] { color: var(--action); font-weight: 700; }
li[aria-current="step"] .step-dot { border: 4px solid #2d62bf; }
li.done .step-dot { background: #267159; border-color: #267159; position: relative; }
li.done .step-dot::after {
  content: ""; position: absolute; width: 6px; height: 4px; border: solid white; border-width: 0 0 1.5px 1.5px;
  left: 3px; top: 3px; transform: rotate(-45deg);
}
@media (max-width: 640px) {
  .topbar-content { min-height: 54px; padding: 0 16px; }
  .workspace { padding: 32px 16px; }
  .intro { margin-bottom: 20px; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .redemption-column { gap: 12px; }
  .card-panel, .steps-panel { padding: 17px; }
  .steps-panel ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
  .steps-panel li { min-height: 26px; gap: 5px; font-size: 12px; }
  .steps-panel li::after { display: none; }
}
