/* onboarding.css — first-run setup wizard + getting-started checklist.
   Mobile-first: the wizard card is a bottom sheet on phones, centered on
   desktop. Loaded by plan.html. */

/* ── Setup wizard ─────────────────────────────────────────────────────────── */

.setup-wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 52, 99, 0.55);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.setup-wizard-card {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 1.4rem 1.3rem calc(1.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(8, 52, 99, 0.25);
  animation: sw-slide-up 0.3s ease;
}

@keyframes sw-slide-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .setup-wizard-overlay {
    align-items: center;
    padding: 20px;
  }
  .setup-wizard-card {
    border-radius: 22px;
    padding: 1.8rem 1.7rem;
  }
}

.setup-wizard-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.swp-dot {
  width: 26px;
  height: 5px;
  border-radius: 3px;
  background: #dbe7f5;
  transition: background 0.25s;
}

.swp-dot.active {
  background: #1b6fd8;
}

.sw-title {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #083463;
}

.sw-sub {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7c93;
  line-height: 1.45;
}

.sw-question {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #083463;
}

.sw-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.sw-chip {
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid #d7e3f2;
  background: #f8fbff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #24344d;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}

.sw-chip.selected {
  border-color: #1b6fd8;
  background: #e5f0fd;
  color: #0d4fa8;
}

.sw-pack-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.sw-pack-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1.5px solid #d7e3f2;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.sw-pack-card.selected {
  border-color: #1b6fd8;
  background: #f0f7ff;
}

.sw-pack-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.sw-pack-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sw-pack-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #083463;
}

.sw-pack-match {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #dcf5ec;
  color: #12805f;
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: 1px;
}

.sw-pack-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7c93;
}

.sw-pack-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a7bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-pack-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #d7e3f2;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.sw-pack-card.selected .sw-pack-check {
  background: #1b6fd8;
  border-color: #1b6fd8;
  color: #fff;
}

.sw-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  align-items: center;
}

.sw-actions-col {
  flex-direction: column;
  align-items: stretch;
}

.sw-btn-primary {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--accent, #1b6fd8);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.sw-btn-primary:hover:not(:disabled) {
  opacity: 0.88;
}

.sw-btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
}

.sw-btn-ghost {
  padding: 0.85rem 1.2rem;
  border: 1.5px solid #d7e3f2;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #24344d;
  cursor: pointer;
}

.sw-btn-link {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6b7c93;
  cursor: pointer;
  padding: 0.5rem;
  text-decoration: underline;
}

/* ── Getting-started checklist ────────────────────────────────────────────── */

.getting-started-card {
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(8, 52, 99, 0.06);
}

.gs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.gs-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #083463;
}

.gs-count {
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1b6fd8;
  background: #e5f0fd;
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: 1px;
}

.gs-dismiss {
  border: none;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #94a7bd;
  cursor: pointer;
  padding: 4px 6px;
}

.gs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gs-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gs-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #d7e3f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
  color: transparent;
  flex-shrink: 0;
}

.gs-item.done .gs-check {
  background: #1aa179;
  border-color: #1aa179;
  color: #fff;
}

.gs-label {
  font-size: 0.87rem;
  font-weight: 700;
  color: #24344d;
}

.gs-item.done .gs-label {
  color: #94a7bd;
  text-decoration: line-through;
}

.gs-link {
  color: #1b6fd8;
  text-decoration: none;
}

.gs-link:hover {
  text-decoration: underline;
}
