:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f8;
  --text: #121528;
  --muted: #5b6078;
  --line: #dfe2ee;
  --brand: #3a3fd8;
  --brand-ink: #ffffff;
  --money: #0f9d58;
  --money-soft: #e3f6ec;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --danger: #c62828;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f1a;
    --surface: #161a2b;
    --surface-2: #1e2338;
    --text: #eef0fa;
    --muted: #9aa1bd;
    --line: #2a3050;
    --brand: #6d72ff;
    --money: #34c77b;
    --money-soft: #12301f;
    --warn: #f0a640;
    --warn-soft: #33260f;
    --danger: #ff6b6b;
    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.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.3rem; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }

.hero {
  background: linear-gradient(160deg, #2b2fb8, #4b2fb8 60%, #6b2fa8);
  color: #fff;
  padding: 36px 0 28px;
}
.hero h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.hero p { color: #dcdcff; }
.amount { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.amount div {
  flex: 1 1 140px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.amount b { display: block; font-size: 1.6rem; }
.amount span { font-size: .85rem; color: #dcdcff; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; }
.must {
  background: rgba(255,255,255,.12);
  border: 2px solid #ffd166;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.must small { color: #ffe3a3; }
.hero .code output { color: #fff; background: rgba(0,0,0,.2); border-color: #ffd166; }
.hero .btn.ghost { background: rgba(255,255,255,.16); color: #fff; }
.hero .fast { margin: 14px 0 0; color: #ffd166; font-weight: 700; }
.fast-note {
  margin-top: 12px;
  background: var(--warn-soft);
  border-left: 4px solid var(--warn);
  border-radius: 10px;
  padding: 12px 14px;
}

section { padding: 26px 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.steps { list-style: none; counter-reset: s; padding: 18px; margin: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 46px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.steps li:last-child { padding-bottom: 0; }

.code {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 8px 0;
}
.code output {
  font: 700 1.25rem/1 ui-monospace, monospace;
  letter-spacing: .08em;
  background: var(--surface-2);
  border: 1px dashed var(--brand);
  padding: 10px 14px; border-radius: 10px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; cursor: pointer;
  padding: 11px 16px; font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
}
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.money { background: var(--money); color: #fff; }
.btn.small { padding: 7px 10px; font-size: .82rem; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.notice {
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.notice h2 { color: var(--warn); font-size: 1.1rem; }
.notice ul { margin: 0; padding-left: 20px; }
.notice li { margin-bottom: 6px; }

form label { display: block; font-weight: 600; margin: 14px 0 6px; }
form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=tel], input[type=password], textarea, select {
  width: 100%;
  padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.preview { max-height: 220px; margin-top: 8px; border-radius: 10px; display: none; }
.hp { position: absolute; left: -9999px; }

.msg { padding: 12px 14px; border-radius: 10px; margin-top: 14px; display: none; }
.msg.ok { display: block; background: var(--money-soft); color: var(--money); }
.msg.err { display: block; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }

footer { padding: 24px 0 40px; font-size: .82rem; color: var(--muted); }
.nowrap{white-space:nowrap}
