/* Onboarding wizard — warm, soft, matches Poppy marketing */

.onboarding-page .onboarding-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.onboarding-shell {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ob-progress-wrap {
  text-align: center;
}

.ob-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border, #e8ddd4);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ob-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft, #e8a090), var(--accent, #c45c4a));
  transition: width 0.35s ease;
}

.ob-progress-label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted, #5c534c);
  font-weight: 500;
}

.ob-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e8ddd4);
  border-radius: var(--radius, 14px);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow, 0 12px 40px rgba(42, 36, 32, 0.06));
}

.ob-card--success {
  text-align: center;
}

.ob-title {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--ink, #2a2420);
}

.ob-lead {
  margin: 0 0 1.25rem;
  color: var(--ink-muted, #5c534c);
  font-size: 1.02rem;
}

.ob-list {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--ink-muted, #5c534c);
}

.ob-list li {
  margin-bottom: 0.4rem;
}

.ob-form.stack > * + * {
  margin-top: 1rem;
}

.ob-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink, #2a2420);
}

.ob-form input,
.ob-form textarea {
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border, #e8ddd4);
  font: inherit;
}

.ob-form textarea {
  resize: vertical;
  min-height: 5rem;
}

.ob-fieldset {
  border: 1px dashed var(--border, #e8ddd4);
  border-radius: 12px;
  padding: 1rem 1rem 0.5rem;
  margin: 0 0 0.5rem;
}

.ob-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.ob-radio {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500 !important;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.ob-radio input {
  margin-top: 0.2rem;
}

.ob-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.ob-check input {
  margin-top: 0.2rem;
}

.ob-hint {
  font-weight: 400;
  color: var(--ink-muted, #5c534c);
  font-size: 0.85rem;
}

.ob-actions {
  margin-top: 0.5rem;
}

.ob-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.ob-code {
  background: #3d3430;
  color: #f8f4f0;
  padding: 1rem;
  border-radius: 12px;
  overflow: auto;
  font-size: 0.85rem;
  word-break: break-all;
}

.ob-muted {
  font-size: 0.92rem;
  color: var(--ink-muted, #5c534c);
  margin: 1rem 0 1.25rem;
}

.ob-footnote {
  margin-top: 1.25rem;
}

.ob-footnote a {
  color: var(--accent, #c45c4a);
}

.ob-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ob-tab-panel {
  border: 1px solid var(--border, #e8ddd4);
  border-radius: 12px;
  padding: 0.5rem 1rem 1rem;
  background: #faf8f6;
}

.ob-tab-summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  padding: 0.35rem 0;
}

.ob-tab-summary::-webkit-details-marker {
  display: none;
}

.ob-tab-summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}

details[open] > .ob-tab-summary::before {
  transform: rotate(90deg);
}

.ob-find-results {
  margin-top: 0.75rem;
}

.ob-radio--block {
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border, #e8ddd4);
}

.ob-import-banner {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--border, #e8ddd4);
}

.ob-import-banner--ok {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.ob-import-banner--warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.ob-import-banner__msg {
  margin: 0;
  font-weight: 600;
}

.ob-import-banner__list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 0.2s ease;
  margin: 0.25rem 0 0;
  min-height: 1.25em;
}

.htmx-indicator.htmx-request {
  opacity: 1;
}

.ob-find-loading {
  font-size: 0.88rem;
}

.ob-voice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.ob-radio--grow {
  flex: 1 1 12rem;
  margin-bottom: 0 !important;
}

.ob-voice-sample {
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
}

.ob-website-hero__form {
  position: relative;
}

.ob-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent, #c45c4a);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ob-link-btn:hover {
  color: var(--ink, #2a2420);
}

.ob-website-wizard {
  margin-top: 0.75rem;
  min-height: 4.5rem;
}

.ob-website-wizard__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-muted, #5c534c);
  font-size: 0.92rem;
}

.ob-website-wizard__line {
  padding: 0.15rem 0;
  opacity: 0.35;
  transition: opacity 0.35s ease, font-weight 0.35s ease;
}

.htmx-indicator.htmx-request .ob-website-wizard__line--1 {
  animation: ob-wiz-phase 9s ease-in-out infinite;
}

.htmx-indicator.htmx-request .ob-website-wizard__line--2 {
  animation: ob-wiz-phase 9s ease-in-out infinite;
  animation-delay: 3s;
}

.htmx-indicator.htmx-request .ob-website-wizard__line--3 {
  animation: ob-wiz-phase 9s ease-in-out infinite;
  animation-delay: 6s;
}

@keyframes ob-wiz-phase {
  0%,
  26% {
    opacity: 1;
    font-weight: 700;
    color: var(--ink, #2a2420);
  }
  33%,
  100% {
    opacity: 0.28;
    font-weight: 500;
    color: var(--ink-muted, #5c534c);
  }
}

.ob-find-alt {
  margin-top: 0.5rem;
}

.ob-tabs--nested {
  margin-top: 0.75rem;
}
