:root {
  --blue: #0ea5e9;
  --blue-deep: #0284c7;
  --blue-soft: #b9e3fa;
  --blue-wash: #dcf0fc;
  --ink: #0d1117;
  --ink-2: #3b4452;
  --muted: #6b7584;
  --line: #dfe6ee;
  --bg: #fcfcfc;
  --card: #ffffff;
  --err: #d92d20;
  --ok: #079455;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}

/* Background arcs (from brand slide) */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
/* Top-left band sits in the corner only; the logo is placed clear of it (as in the brand slide). */
.arc-tl {
  position: absolute; width: 600px; height: 600px; left: -420px; top: -460px;
  border-radius: 50%; border: 90px solid var(--blue-wash);
  background: transparent;
}
.arc-br { position: absolute; border-radius: 50%; }
.arc-br-1 { width: 1100px; height: 1100px; right: -620px; bottom: -760px; border: 3px solid var(--blue); }
.arc-br-2 { width: 1100px; height: 1100px; right: -700px; bottom: -840px; border: 3px solid var(--blue-soft); }

.top { position: relative; z-index: 2; padding: 48px 20px 0 clamp(190px, 14vw, 240px); }
.logo { position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: flex-end; font-family: Barlow, Inter, sans-serif; line-height: 1; }
.logo-word { font-size: 40px; font-weight: 600; letter-spacing: -.5px; }
.logo-word .br { color: var(--blue); font-weight: 500; }
.logo-sub { font-size: 17px; font-weight: 500; margin-top: 4px; margin-right: 14px; }

.shell {
  position: relative; z-index: 1; flex: 1;
  width: 100%; max-width: 560px; margin: 36px auto 0; padding: 0 20px 40px;
}
.progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .35s ease; }
.step-count { color: var(--muted); font-size: 13px; margin: 10px 0 0; min-height: 20px; }

.step { display: none; animation: in .35s ease; }
.step.active { display: block; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow { color: var(--blue-deep); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 22px 0 6px; }
h1 { font-family: Barlow, Inter, sans-serif; font-weight: 600; font-size: clamp(28px, 5vw, 36px); line-height: 1.15; letter-spacing: -.3px; margin: 20px 0 8px; }
.eyebrow + h1 { margin-top: 0; }
.lead { color: var(--ink-2); margin: 0 0 26px; }
.muted { color: var(--muted); }
em { font-style: normal; color: var(--muted); font-weight: 400; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
input:not([type=radio]):not([type=checkbox]), select {
  width: 100%; height: 54px; padding: 0 16px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(14,165,233,.15); }
input.invalid, select.invalid { border-color: var(--err); }
.code-input { text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-family: Barlow, Inter, sans-serif; font-size: 22px !important; }
.sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 24px !important; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.secret { position: relative; }
.secret input { padding-right: 76px; letter-spacing: .06em; }
.secret input.masked { -webkit-text-security: disc; }
.reveal { position: absolute; right: 8px; top: 9px; height: 36px; padding: 0 12px; border: 0; background: var(--blue-wash); color: var(--blue-deep); font: 600 13px Inter, sans-serif; border-radius: 8px; cursor: pointer; }

.choices { display: grid; gap: 14px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px;
  padding: 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.choice-card svg { grid-row: span 2; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--blue-wash); fill: none; stroke: var(--blue-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice-card strong { font-family: Barlow, Inter, sans-serif; font-size: 20px; font-weight: 600; }
.choice-card small { color: var(--muted); font-size: 14px; }
.choice-card:hover { border-color: var(--blue-soft); }
.choice input:checked + .choice-card { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(14,165,233,.15); }
.choice input:focus-visible + .choice-card { outline: 2px solid var(--blue); outline-offset: 2px; }

.seg { display: inline-flex; background: #eef3f7; border-radius: 12px; padding: 4px; gap: 4px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 22px; border-radius: 9px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--card); color: var(--blue-deep); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }

.callout { display: flex; gap: 16px; padding: 20px; background: var(--card); border: 1.5px solid var(--blue-soft); border-left: 5px solid var(--blue); border-radius: var(--radius); margin: 14px 0 22px; }
.callout svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--blue-deep); stroke-width: 1.7; stroke-linecap: round; }
.callout svg .fill { fill: var(--blue); stroke: none; }
.callout p { margin: 6px 0 0; color: var(--ink-2); }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 18px; cursor: pointer; color: var(--ink-2); font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }

.bank-wrap { position: relative; }
.bank-status { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; }
.bank-status.ok { color: var(--ok); } .bank-status.warn { color: #b54708; } .bank-status.err { color: var(--err); }
#bankName.filled { background: #f2faff; border-color: var(--blue-soft); font-weight: 600; }
.match { display: block; font-size: 13px; margin-top: 7px; font-weight: 600; min-height: 18px; }
.match.ok { color: var(--ok); } .match.err { color: var(--err); }

.review { margin: 0 0 20px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.review div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef2f6; }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); font-size: 14px; }
.review dd { margin: 0; font-weight: 600; word-break: break-word; }

.error { color: var(--err); font-weight: 500; min-height: 24px; margin: 4px 0 0; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.btn { height: 52px; padding: 0 28px; border-radius: 999px; font: 600 16px Inter, sans-serif; cursor: pointer; border: 0; transition: background .15s, transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--blue); color: #fff; margin-left: auto; min-width: 150px; }
.btn.primary:hover { background: var(--blue-deep); }
.btn.primary:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--blue-soft); }

.done { text-align: center; padding-top: 30px; }
.done h1 { font-size: clamp(34px, 7vw, 46px); }
.done-lead { font-size: 19px; }
.city-filled { background: #f2faff !important; border-color: var(--blue-soft) !important; font-weight: 600; }
.check-badge svg { width: 84px; height: 84px; }
.check-badge circle { fill: var(--blue-wash); stroke: var(--blue); stroke-width: 2; }
.check-badge path { fill: none; stroke: var(--blue-deep); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; padding: 20px; }
.foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 600px) {
  .top { padding: 30px 16px 0 112px; }
  .logo-word { font-size: 32px; } .logo-sub { font-size: 14px; }
  .arc-tl { width: 340px; height: 340px; left: -260px; top: -280px; border-width: 55px; }
  .arc-br-1 { width: 520px; height: 520px; right: -390px; bottom: -430px; border-width: 2px; }
  .arc-br-2 { width: 520px; height: 520px; right: -430px; bottom: -470px; border-width: 2px; }
  .foot { padding-right: 90px; }
  .review div { grid-template-columns: 1fr; gap: 2px; }
  .shell { margin-top: 20px; }
}

/* Offer, documents, fireworks */
.small { font-size: 13px; }
.equiv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: -6px 0 20px; }
.equiv div { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.equiv b { display: block; font: 600 18px Barlow, Inter, sans-serif; }
.equiv span { color: var(--muted); font-size: 12px; }
.doc-box { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 6px 20px 14px; max-height: 52vh; overflow-y: auto; margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.doc-box h3 { font: 600 16px Barlow, Inter, sans-serif; color: var(--ink); margin: 18px 0 4px; }
.doc-box p { margin: 10px 0; }
.doc-hint { color: var(--muted); font-size: 13px; margin: -10px 0 14px; }
#fireworks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
@media (max-width: 600px) { .equiv { grid-template-columns: 1fr 1fr; } .doc-box { max-height: 58vh; padding: 4px 14px 12px; } }

a.logo { color: inherit; text-decoration: none; }
