:root{
  --bg:#07111f;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --line:#e2e8f0;
  --soft:#f8fafc;
  --good:#16a34a;
  --amber:#f59e0b;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left,rgba(37,99,235,.35),transparent 34rem),
    radial-gradient(circle at bottom right,rgba(14,165,233,.24),transparent 30rem),
    var(--bg);
  color:var(--text);
  min-height:100vh;
}

.onboarding-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.onboarding-card{
  width:min(960px,100%);
  background:var(--card);
  border-radius:28px;
  padding:30px;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
}

.brand-row{
  display:flex;
  gap:16px;
  align-items:center;
  margin-bottom:22px;
}

.brand-row img{
  width:58px;
  height:58px;
  object-fit:contain;
  border-radius:16px;
  background:#f1f5f9;
  padding:8px;
}

.eyebrow{
  color:var(--blue);
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.76rem;
}

h1{
  margin:2px 0 0;
  font-size:clamp(1.8rem,4vw,2.65rem);
  line-height:1.05;
}

h2{
  margin:0 0 10px;
  font-size:clamp(1.45rem,3vw,1.85rem);
}

h3{margin:0 0 8px}

p{
  color:var(--muted);
  line-height:1.55;
}

.progress{
  height:10px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  margin-bottom:10px;
}

#progressFill{
  height:100%;
  width:0;
  background:linear-gradient(90deg,var(--blue),#38bdf8);
  transition:width .2s ease;
}

.step-label{
  color:var(--muted);
  font-weight:850;
  font-size:.9rem;
  margin-bottom:24px;
}

.step-content{
  min-height:390px;
}

.hero-copy{
  background:linear-gradient(135deg,#eff6ff,#f8fafc);
  border:1px solid #dbeafe;
  border-radius:24px;
  padding:22px;
  margin-bottom:20px;
}

.hero-copy p{
  max-width:690px;
  margin-bottom:0;
}

.choice-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.choice-card{
  border:2px solid var(--line);
  border-radius:22px;
  padding:22px;
  cursor:pointer;
  background:var(--soft);
  transition:all .15s ease;
}

.choice-card:hover,
.choice-card.active{
  border-color:var(--blue);
  box-shadow:0 14px 34px rgba(37,99,235,.15);
  transform:translateY(-1px);
  background:#fff;
}

.choice-topline{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.28rem;
  margin-bottom:8px;
}

.choice-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#dbeafe;
  color:#1d4ed8;
  font-weight:950;
  font-size:.9rem;
}

.choice-card ul{
  margin:14px 0 0;
  padding-left:20px;
  color:#334155;
  line-height:1.7;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.welcome-form{margin-top:12px}

.form-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.form-field.full{grid-column:1 / -1}

label{
  font-weight:900;
  color:#334155;
}

input,select,textarea{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:14px;
  min-height:50px;
  padding:0 14px;
  font:inherit;
  background:white;
}

input:focus,select:focus,textarea:focus{
  outline:3px solid rgba(37,99,235,.16);
  border-color:var(--blue);
}

textarea{
  padding:12px 14px;
  min-height:110px;
  resize:vertical;
}

.price-line{
  display:inline-flex;
  margin-top:12px;
  padding:9px 12px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-weight:900;
  font-size:.88rem;
}

.activation-card{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  margin:14px 0 18px;
}

.activation-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:#ecfdf5;
  color:#166534;
  font-weight:950;
  margin-bottom:8px;
}

.summary-box{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
}

.summary-box p{margin:6px 0}

.plant-code-card{
  border:1px solid #bfdbfe;
  background:#eff6ff;
  border-radius:22px;
  padding:18px;
  margin:14px 0;
}

.plant-code-card span{
  display:block;
  color:#1e3a8a;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.76rem;
  margin-bottom:6px;
}

.plant-code-card strong{
  display:block;
  font-size:clamp(1.25rem,3vw,1.85rem);
  color:#0f172a;
  word-break:break-all;
}

.ready-summary{margin-bottom:14px}

.link-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.link-row{
  display:grid;
  grid-template-columns:160px 1fr auto;
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}

.link-row code{
  word-break:break-all;
  color:#334155;
  font-size:.9rem;
}

.actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
}

.btn{
  border:0;
  border-radius:14px;
  min-height:48px;
  padding:0 18px;
  font-weight:950;
  cursor:pointer;
}

.btn:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.btn.primary{
  background:var(--blue);
  color:white;
}

.btn.primary:hover{background:var(--blue2)}

.btn.secondary{
  background:#e2e8f0;
  color:#0f172a;
}

.status-text{
  min-height:22px;
  margin-top:12px;
  color:var(--muted);
  font-weight:800;
}

.success{
  color:var(--good);
  font-weight:950;
}

.demo-note{
  background:#eff6ff;
  color:#1e3a8a;
  border:1px solid #bfdbfe;
  border-radius:18px;
  padding:14px 16px;
  margin-top:16px;
  line-height:1.5;
}

@media(max-width:760px){
  .onboarding-shell{padding:14px}
  .onboarding-card{padding:20px;border-radius:22px}
  .choice-grid,.form-grid{grid-template-columns:1fr}
  .link-row{grid-template-columns:1fr}
  .actions{flex-direction:column-reverse}
  .btn{width:100%}
}

/* User ID + PIN ready screen polish */
.ready-intro {
  line-height: 1.55;
}
.login-note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.06);
  color: #334155;
  border-radius: 16px;
  line-height: 1.45;
}
.login-note strong {
  color: #1d4ed8;
}
