/* PAWS v2 onboarding — matches marketing theme: Inter, #4183D7 → #002B5C, white cards, slate text */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #F8FAFC;
  color: #0F172A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
a { color: #4183D7; text-decoration: none; }

/* top bar */
.ob-top {
  display: flex; align-items: center; gap: 10px;
  max-width: 760px; margin: 0 auto; padding: 18px 16px 8px;
  flex-wrap: wrap; position: sticky; top: 0; background: #F8FAFC; z-index: 40;
}
.ob-top .bck {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid #E2E8F0; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; color: #334155; flex-shrink: 0;
}
.ob-top .lbl { font-size: 13px; font-weight: 700; color: #334155; letter-spacing: .01em; }
.ob-top .lbl b { color: #4183D7; }
.ob-top .dots { display: inline-flex; gap: 5px; }
.ob-top .dots i { width: 7px; height: 7px; border-radius: 50%; background: #E2E8F0; }
.ob-top .dots i.on { background: #4183D7; }
.ob-top .lang { margin-left: auto; display: inline-flex; gap: 2px; }
.ob-top .lang button {
  background: none; border: none; font-size: 12px; font-weight: 700; color: #94A3B8;
  padding: 6px 9px; border-radius: 999px; cursor: pointer;
}
.ob-top .lang button.on { color: #4183D7; background: rgba(65,131,215,.10); }
#authArea { display: inline-flex; gap: 6px; align-items: center; }

/* card */
.ob-card {
  max-width: 640px; margin: 10px auto 20px;
  background: #fff; border: 1px solid #E9EEF5; border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15,23,42,.07);
  overflow: hidden;
}
.ob-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid #F1F5F9;
}
.ob-head .ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #4183D7, #002B5C);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.ob-head b { font-size: 15px; color: #002B5C; display: block; }
.ob-head span { font-size: 12px; color: #64748B; display: block; margin-top: 1px; }
.ob-body { padding: 22px; min-height: 320px; }

/* bubbles */
.step { display: none; }
.step.active { display: block; animation: obin .28s ease; }
@keyframes obin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bubble {
  background: #F1F5F9; border-radius: 14px 14px 14px 4px;
  padding: 12px 15px; font-size: 14px; line-height: 1.55; color: #1E293B;
  margin-bottom: 12px; max-width: 92%;
}
.bubble.max { border-left: 3px solid #4183D7; }
.bubble.user { background: #EAF1FB; margin-left: auto; border-radius: 14px 14px 4px 14px; }
.bubble b { color: #002B5C; }
.hidden { display: none !important; }

/* chips & inputs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.c {
  border: 1px solid #E2E8F0; background: #fff; color: #334155;
  padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.c.sel { background: rgba(65,131,215,.10); border-color: #4183D7; color: #2E6DB4; }
.c.q { background: #F8FAFC; cursor: default; font-weight: 700; color: #475569; }
.btn-chip { text-align: center; flex: 1 1 auto; }
.btn-chip.ghost { background: #F8FAFC; border-color: #E2E8F0; }
.input2, .ta2 {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid #E2E8F0;
  font-size: 14px; outline: none; font-family: inherit; background: #fff; color: #0F172A;
  transition: border-color .15s;
}
.input2:focus, .ta2:focus { border-color: #4183D7; box-shadow: 0 0 0 3px rgba(65,131,215,.12); }
.ta2 { min-height: 74px; resize: vertical; }

/* primary CTA */
.btn-p {
  width: 100%; padding: 13px 16px; border: none; border-radius: 13px; cursor: pointer;
  background: linear-gradient(90deg, #4183D7, #002B5C); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .15s, transform .1s;
}
.btn-p:hover { opacity: .93; }
.btn-p:active { transform: scale(.99); }
.btn-p:disabled { opacity: .5; cursor: not-allowed; }

.row2 { display: flex; gap: 10px; margin-top: 6px; }
.row2 .btn-p { flex: 1; }

/* summary */
.sum-card {
  border: 1px solid #DFE8F5; border-radius: 14px; background: #F7FAFF;
  padding: 14px 16px; margin: 12px 0; font-size: 13.5px; line-height: 1.6; color: #334155;
}
.sum-card b { color: #002B5C; }
.sum-card .k { color: #4183D7; font-weight: 700; }

/* typing */
.typing { display: inline-flex; gap: 4px; padding: 12px 15px; background: #F1F5F9; border-radius: 14px 14px 14px 4px; margin-bottom: 12px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: tp 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 0%,60%,100% { transform: none; opacity:.5 } 30% { transform: translateY(-3px); opacity: 1 } }

/* toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #002B5C; color: #fff; font-size: 13px; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(15,23,42,.25);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 99;
}
.toast.show { opacity: 1; }

/* skip line */
.ob-exit { max-width: 640px; margin: 0 auto 30px; text-align: center; font-size: 12.5px; color: #94A3B8; }
.ob-exit a { font-weight: 600; }

/* modal overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9998; display: none;
  background: rgba(15,23,42,.55); backdrop-filter: blur(3px);
  justify-content: center; align-items: flex-start; overflow-y: auto; padding: 0 12px;
}
.modal-overlay.open { display: flex; }
body.modal-open { overflow: hidden; }

/* mobile */
@media (max-width: 520px) {
  .ob-top { padding: 12px 12px 4px; }
  .ob-body { padding: 18px 16px; }
  .ob-card { border-radius: 18px; margin-top: 6px; }
  #authArea { order: 5; width: 100%; justify-content: flex-end; display: flex; }
  #authArea > * { flex-shrink: 1; }
  .btn-chip { flex: 1 1 100%; }
}