.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
body { padding-bottom: 130px; min-height: 100vh; }

.hero-in { padding: 34px 16px 46px; }
.hero-kicker { font-size: .88em; color: var(--gold-3); opacity: .9; font-weight: 600; }
.hero h1 { font-size: clamp(1.55rem, 5vw, 2.3rem); font-weight: 900; line-height: 1.45; margin: .1em 0 .35em; }
.hero p { margin: .5em 0 0; color: #e8ecf6; font-size: clamp(1rem, 2.6vw, 1.15rem); font-weight: 500; }

.loading { padding: 60px 0; text-align: center; color: #c9d1e6; }

.panel { padding: 22px 22px; margin: 18px 0; }
.panel h2 { font-size: 1.15rem; margin-bottom: .5em; color: var(--navy-800); }
.panel p { margin: .5em 0; }
.panel.center, .center { text-align: center; }
.big-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 12px; font-size: 28px; background: var(--surface-2); border: 1px solid var(--line); }
.big-icon.ok { background: var(--ok-soft); color: var(--ok); border-color: #b9e2cd; }
.big-icon.wait { background: var(--gold-soft); color: var(--gold-2); border-color: #ecd7a6; }

.axes-list { list-style: none; padding: 0; margin: .6em 0; display: grid; gap: .3em; }
.axes-list li { display: flex; align-items: center; gap: .55em; font-weight: 700; color: var(--navy-800); }
.axes-list li.off { color: var(--muted); font-weight: 500; }
.badge { font-size: .72em; font-weight: 700; padding: .05em .7em; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.badge.live { background: var(--ok-soft); border-color: #b9e2cd; color: var(--ok); }

.two-q { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.q-explain { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .93em; line-height: 1.8; }
.q-explain b { display: block; margin-bottom: .2em; color: var(--navy-800); }
.q-explain.a { background: var(--gold-soft); border-right: 4px solid var(--gold); }
.q-explain.f { background: #e8edf7; border-right: 4px solid var(--navy-700); }

.scale { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.scale summary { cursor: pointer; padding: .65em 1em; font-weight: 700; color: var(--navy-700); }
.scale table { width: 100%; border-collapse: collapse; font-size: .88em; line-height: 1.7; }
.scale th, .scale td { border-top: 1px solid var(--line); padding: .6em .75em; text-align: right; vertical-align: top; }
.scale thead th { background: #efe9dc; }
.scale tbody th { white-space: nowrap; font-size: 1.15em; color: var(--navy-800); }
.scale tbody th small { display: block; font-size: .72em; font-weight: 500; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.btn-lg { padding: .7em 1.8em; font-size: 1.05em; }

/* stepper */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: -24px; position: relative; z-index: 2; }
.step {
  display: flex; align-items: center; gap: .55em; text-align: right; padding: .55em .7em;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; box-shadow: var(--shadow);
  min-width: 0; color: var(--ink);
}
.step:hover { border-color: var(--line-2); }
.step.current { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset, var(--shadow); }
.step.off { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #b8c1d8; cursor: not-allowed; box-shadow: none; }
.step-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9em; background: var(--surface-2); color: var(--ax); border: 2px solid var(--ax); }
.step.complete .step-dot { background: var(--ax); color: #fff; }
.step.off .step-dot { border-color: rgba(255,255,255,.3); color: #b8c1d8; background: transparent; }
.step-txt { min-width: 0; line-height: 1.45; }
.step-txt b { display: block; font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-txt small { color: var(--muted); font-size: .75em; }
.step.off .step-txt small { color: #93a0bf; }

.axis-head { margin: 28px 0 14px; padding-right: 14px; border-right: 4px solid var(--gold); color: #fff; }
.axis-kicker { color: var(--gold-3); font-weight: 700; font-size: .88em; }
.axis-head h2 { font-size: 1.35rem; }
.axis-head p { margin: .3em 0 0; font-size: .93em; color: #c9d1e6; }

/* opportunity card */
.opp { padding: 18px 18px 8px; margin: 14px 0; border-top: 4px solid var(--ax); transition: box-shadow .2s; scroll-margin-top: 20px; }
.opp.missing { box-shadow: 0 0 0 3px var(--danger), var(--shadow); }
.opp-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.opp-num { width: 34px; height: 34px; border-radius: 9px; background: var(--ax); color: #fff; display: grid; place-items: center; font-weight: 800; }
.opp-head h3 { font-size: 1.06rem; color: var(--navy-900); }
.opp-head p { margin: .15em 0 0; font-size: .9em; line-height: 1.75; }
.opp-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: transparent; border: 1px solid var(--line); font-weight: 800; transition: all .2s; }
.opp.done .opp-check { background: var(--ok); color: #fff; border-color: var(--ok); }

.q { border: 0; margin: 14px 0 10px; padding: 12px 0 0; border-top: 1px dashed var(--line); min-width: 0; }
.q legend { padding: 0; font-size: .95em; line-height: 1.85; margin-bottom: .55em; float: right; width: 100%; }
.q legend + * { clear: both; }
.q-tag { display: inline-block; font-size: .78em; font-weight: 700; padding: .05em .65em; border-radius: 99px; margin-left: .5em; }
.q-tag.a { background: var(--gold-soft); color: #8a5f14; }
.q-tag.f { background: #e8edf7; color: var(--navy-700); }
.q.missing legend { color: var(--danger); }

.rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rate-opt { position: relative; cursor: pointer; }
.rate-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rate-opt span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 1.5px solid var(--line-2); border-radius: 10px; padding: .45em .2em .4em; background: var(--surface);
  transition: background .12s, border-color .12s, color .12s; min-height: 58px;
}
.rate-opt b { font-size: 1.2em; line-height: 1.2; color: var(--navy-800); }
.rate-opt small { font-size: .72em; color: var(--muted); line-height: 1.4; }
.rate-opt:hover span { border-color: var(--gold); }
.rate-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(217,168,78,.45); }
.rate-opt input:checked + span { background: var(--navy-800); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.rate-opt input:checked + span b { color: var(--gold-3); }
.rate-opt input:checked + span small { color: #dfe5f3; }
.q.missing .rate-opt span { border-color: #e9b8b1; }

.next-off { margin: 20px 0 6px; padding: 14px 16px; border-radius: var(--radius); border: 1px dashed rgba(240,207,134,.6); color: #e8ecf6; text-align: center; background: rgba(255,255,255,.05); }
.next-off b { color: var(--gold-3); }

/* bottom bar */
.bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(7, 21, 51, .96); backdrop-filter: blur(8px); border-top: 1px solid rgba(240,207,134,.35); z-index: 20; padding-bottom: env(safe-area-inset-bottom); color: #fff; }
.bar-note { text-align: center; font-size: .82em; font-weight: 700; color: var(--navy-950); background: var(--gold-grad); padding: .25em 1em; }
.bar-in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.progress { flex: 1; min-width: 0; }
.progress-track { height: 8px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold-grad); border-radius: 99px; transition: width .25s; width: 0; }
.progress-txt { font-size: .8em; color: #c9d1e6; text-align: center; margin-top: 2px; }

@media (max-width: 640px) {
  body { font-size: 15px; }
  .panel { padding: 18px 16px; }
  .two-q, .grid-3 { grid-template-columns: 1fr; }
  .stepper { gap: 5px; }
  .step { flex-direction: column; padding: .45em .25em; gap: .2em; text-align: center; }
  .step-txt b { display: none; }
  .opp { padding: 14px 13px 6px; }
  .rate { gap: 4px; }
  .rate-opt small { font-size: .64em; }
  .scale table { font-size: .82em; }
  .bar-in { gap: 8px; }
  .bar-in .btn { padding: .5em .9em; }
}
