:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e0ea;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --blue: #0f62fe;
  --blue-dark: #0043ce;
  --teal: #007d79;
  --green: #198038;
  --red: #da1e28;
  --gold: #f1c21b;
  --shadow: 0 24px 60px rgba(17, 24, 39, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(15, 98, 254, .16), transparent 26rem),
    radial-gradient(circle at 88% 28%, rgba(0, 125, 121, .16), transparent 24rem),
    linear-gradient(135deg, #f8fafc 0%, #eef3f8 58%, #e7eef7 100%);
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
}

.brand-panel,
.flow-panel {
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  background: #101820;
  color: #f8fbff;
  position: relative;
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -28% 18%;
  height: 44%;
  background: linear-gradient(100deg, rgba(15, 98, 254, .48), rgba(0, 125, 121, .35), rgba(241, 194, 27, .32));
  filter: blur(30px);
  transform: rotate(-7deg);
  animation: glowShift 8s ease-in-out infinite alternate;
}

.brand-lock {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #0f62fe;
  color: white;
  font-weight: 850;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 10px rgba(15, 98, 254, .12);
}

.signal-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.signal-wrap span {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(139, 222, 219, .22);
  border-radius: 999px;
  animation: pulseRing 5.5s ease-in-out infinite;
}

.signal-wrap span:nth-child(1) {
  top: 18%;
  right: 14%;
}

.signal-wrap span:nth-child(2) {
  top: 26%;
  right: 8%;
  animation-delay: 1s;
}

.signal-wrap span:nth-child(3) {
  bottom: 18%;
  left: 12%;
  animation-delay: 2s;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
}

.brand-panel .eyebrow {
  color: #8bdedb;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  color: #c9d3df;
  font-size: 19px;
  line-height: 1.55;
}

.hint {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.trust-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-grid div {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(12px);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 6px;
}

.trust-grid span {
  color: #c9d3df;
  font-size: 13px;
  line-height: 1.35;
}

.flow-panel {
  display: grid;
  align-content: center;
  gap: 20px;
}

.steps {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.steps span {
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  color: var(--muted);
  font-weight: 800;
}

.steps .active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.steps .done {
  background: rgba(25, 128, 56, .13);
  border-color: rgba(25, 128, 56, .3);
  color: var(--green);
}

.form-card,
.alert {
  width: min(100%, 620px);
}

.start-grid {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.start-grid .form-card {
  width: 100%;
}

.secondary-card {
  background: rgba(255, 255, 255, .74);
}

.form-card {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: cardIn .32s ease-out both;
}

.fade-card {
  animation: cardIn .34s ease-out both;
}

label {
  display: grid;
  gap: 8px;
  color: #2f3947;
  font-weight: 750;
}

input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, .14);
}

.factor-list {
  display: grid;
  gap: 10px;
}

.factor-option {
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 247, 251, .82);
  cursor: pointer;
}

.factor-option:hover {
  border-color: rgba(15, 98, 254, .45);
  background: #fff;
}

.factor-option:has(input:checked) {
  border-color: rgba(15, 98, 254, .72);
  background: linear-gradient(135deg, rgba(15, 98, 254, .08), rgba(0, 125, 121, .08));
  box-shadow: 0 12px 28px rgba(15, 98, 254, .11);
}

.factor-option input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.factor-option strong,
.factor-option small {
  display: block;
}

.factor-option small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 650;
}

.mini-status {
  border: 1px solid rgba(0, 125, 121, .22);
  border-radius: 8px;
  padding: 12px 14px;
  color: #0c4f4d;
  background: rgba(0, 125, 121, .08);
  font-weight: 800;
}

button,
.button-link {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--blue-dark);
}

.quiet-link {
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-weight: 750;
}

.quiet-link:hover {
  color: var(--ink);
}

.alert {
  border-radius: 8px;
  border: 1px solid rgba(15, 98, 254, .28);
  background: rgba(15, 98, 254, .09);
  color: #17315f;
  padding: 14px 16px;
  line-height: 1.45;
  font-weight: 700;
}

.alert.error {
  border-color: rgba(218, 30, 40, .24);
  background: rgba(218, 30, 40, .08);
  color: #8a1f27;
}

.success {
  text-align: center;
  justify-items: center;
}

.success-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.debug-panel {
  padding: 0 clamp(18px, 4vw, 44px) 28px;
  background: #0b1118;
  color: #dce7f4;
}

.debug-panel details {
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  overflow: hidden;
}

.debug-panel summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 850;
}

.debug-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 14px;
}

.debug-grid div {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .05);
}

.debug-grid strong,
.debug-grid span {
  display: block;
}

.debug-grid strong {
  margin-bottom: 3px;
  color: #8bdedb;
  font-size: 12px;
  text-transform: uppercase;
}

.debug-panel pre {
  max-height: 420px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #05080d;
  white-space: pre-wrap;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseRing {
  0% {
    opacity: .18;
    transform: scale(.86);
  }
  50% {
    opacity: .48;
  }
  100% {
    opacity: .12;
    transform: scale(1.12);
  }
}

@keyframes glowShift {
  from {
    transform: rotate(-7deg) translateX(-2%);
  }
  to {
    transform: rotate(-4deg) translateX(4%);
  }
}

@media (max-width: 880px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 42vh;
  }

  h1 {
    font-size: 42px;
  }

  .start-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-panel,
  .flow-panel {
    padding: 24px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .steps span {
    height: 38px;
    font-size: 13px;
  }

  .debug-grid {
    grid-template-columns: 1fr;
  }
}
