/* onboarding.css — World Class PWA UI */
:root {
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Page transitions */
.qp-page {
  animation: qpSlideUp 0.3s cubic-bezier(0.4,0,0.2,1);
  padding-bottom: 32px;
}
@keyframes qpSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Typography */
.qp-page__title {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.2;
  margin-bottom: 6px; color: var(--slate, #1a1a1a);
}
.qp-page__subtitle {
  font-size: 14px; color: #707070;
  margin-bottom: 24px; line-height: 1.5;
}

/* Tile Grid */
.qp-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) { .qp-tiles { grid-template-columns: repeat(3, 1fr); } }

/* Tiles */
.qp-tile {
  background: #ffffff;
  border: 1.5px solid #ececec;
  border-radius: var(--radius);
  padding: 20px 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.qp-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
}
.qp-tile:active::after { opacity: 1; }
.qp-tile:hover {
  border-color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.qp-tile:active { transform: scale(0.97); box-shadow: none; }
.qp-tile__icon { font-size: 32px; line-height: 1; }
.qp-tile__title { font-size: 13px; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
.qp-tile__subtitle { font-size: 11px; color: #999; line-height: 1.3; }
.qp-tile.qp-tile--selected {
  border-color: #1a1a1a;
  background: #f8f8f8;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

/* Back button */
.qp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: #707070; font-weight: 500;
  cursor: pointer; padding: 8px 0;
  background: none; border: 0;
  margin-bottom: 12px;
  transition: var(--transition);
}
.qp-back:hover { color: #1a1a1a; transform: translateX(-2px); }

/* Form elements */
.qp-form { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.qp-form__label { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.qp-form__input {
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font);
  background: #fff;
  outline: none;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}
.qp-form__input:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}
.qp-form__hint { font-size: 12px; color: #999; }
.qp-form__error { font-size: 12px; color: #dc2626; font-weight: 500; }

/* The Aadhaar, PAN and company screens ask for these three and no stylesheet defined them, so those
   fields rendered as raw browser defaults - a 13px inset box, which on iOS also zooms the page when
   tapped. Same look as .qp-form__* above; 16px is the size below which Safari zooms. */
.qp-field { display: flex; flex-direction: column; margin-bottom: 14px; max-width: 380px; }
.qp-label { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.qp-input {
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font);
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}
.qp-input::placeholder { color: #9aa3ab; }
.qp-input:focus { border-color: #1a1a1a; box-shadow: 0 0 0 3px rgba(26,26,26,0.06); }
.qp-input:disabled { background: #f4f4f5; color: #6b7280; }

/* Buttons */
.qp-btn {
  background: #1a1a1a; color: #fff; border: 0;
  padding: 15px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.1px;
}
.qp-btn:hover { background: #333; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.qp-btn:active { transform: translateY(0); box-shadow: none; }
.qp-btn--secondary {
  background: transparent; color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
}
.qp-btn--secondary:hover { background: #f5f5f5; }

/* OTP inputs */
.qp-otp { display: flex; gap: 10px; justify-content: center; margin: 8px 0; }
.qp-otp__input {
  width: 48px; height: 56px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-sm);
  text-align: center; font-size: 22px; font-weight: 700;
  font-family: var(--font);
  outline: none; transition: var(--transition);
  background: #fafafa;
}
.qp-otp__input:focus {
  border-color: #1a1a1a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

/* Skeleton loader */
.qp-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: qpSkeleton 1.5s infinite;
  border-radius: 8px;
}
@keyframes qpSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pill badge */
.qp-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0f0f0; color: #555;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  border: 0; cursor: pointer;
  transition: var(--transition);
}
.qp-pill:hover { background: #e0e0e0; }

/* Toast */
.qp-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a1a1a; color: #fff;
  padding: 12px 24px; border-radius: 24px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap; z-index: 9999;
  pointer-events: none;
}
.qp-toast.qp-toast--show { transform: translateX(-50%) translateY(0); }
.qp-toast.qp-toast--err { background: #dc2626; }

/* Done page */
.qp-done {
  text-align: center; padding: 40px 20px;
  animation: qpSlideUp 0.4s cubic-bezier(0.4,0,0.2,1);
}
.qp-done__icon { font-size: 64px; margin-bottom: 16px; }
.qp-done__title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.qp-done__subtitle { font-size: 15px; color: #707070; margin-bottom: 24px; }
.qp-done__info { text-align: left; background: #f8f8f8; border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; }
.qp-done__info dt { font-size: 11px; color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px; }
.qp-done__info dt:first-child { margin-top: 0; }
.qp-done__info dd { font-size: 15px; font-weight: 600; color: #1a1a1a; margin: 2px 0 0; }

/* Loading spinner */
.qp-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.qp-spinner {
  width: 32px; height: 32px;
  border: 3px solid #f0f0f0;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: qpSpin 0.7s linear infinite;
}
@keyframes qpSpin { to { transform: rotate(360deg); } }

/* Safe area for mobile */
.qp-main { padding-bottom: env(safe-area-inset-bottom, 16px); }

/* Responsive: tablet and laptop */
@media(min-width:600px){
  .qp-form{max-width:440px}
  .qp-onboarding{max-width:540px;padding:32px 36px}
}
@media(min-width:1024px){
  .qp-form{max-width:480px}
  .qp-onboarding{max-width:580px;padding:36px 44px}
}

/* QuantProc(TM) at the top of each app's sign-in screen, with that app's own icon. */
.qp-brand{display:flex;align-items:center;gap:12px;margin:0 0 22px}
.qp-brand__badge{width:44px;height:44px;border-radius:12px;flex:none;box-shadow:0 6px 16px rgba(29,78,216,.22)}
.qp-brand__word{font-family:'Sora',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1}
.qp-brand__q1{color:#1D4ED8}
.qp-brand__q2{color:#0F172A}
.qp-brand__tm{font-size:.42em;font-weight:700;color:#1D4ED8;margin-left:2px;vertical-align:super}
