/* KitchenDrop onboarding. Depends on brand.css. */

body {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background: var(--surface-2);
}

.setup {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  padding-bottom: 48px;
  background: var(--bg);
  border-inline: 1px solid var(--line);
}

.setup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.setup-bar .kd-logo {
  font-size: 0.98rem;
}

/* ---------- Progress ---------- */

.progress {
  padding: 22px 22px 4px;
}

.progress-bar {
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.progress-bar i {
  display: block;
  height: 100%;
  width: 33.33%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.35s var(--ease);
}

.progress-marks {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.mark {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-4);
  transition: color 0.2s var(--ease);
}

.mark.is-done {
  color: var(--fg-3);
}

.mark.is-current {
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Steps ---------- */

.step {
  display: none;
  padding: 26px 22px 0;
}

.step.is-active {
  display: block;
  animation: kd-step 0.24s var(--ease);
}

@keyframes kd-step {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.step h1 {
  font-size: 1.72rem;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}

.step-lead {
  max-width: 48ch;
  margin-bottom: 26px;
  font-size: 0.94rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.step-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- Chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 0.45em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--fg-2);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--fg);
}

.chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

[data-theme="dark"] .chip.is-on {
  color: #101828;
}

/* ---------- Tone cards ---------- */

.tones {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 7px;
}

.tone {
  position: relative;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.tone:hover {
  border-color: var(--line-strong);
}

.tone b {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.tone span {
  display: block;
  font-size: 0.84rem;
  color: var(--fg-3);
  line-height: 1.5;
}

.tone.is-on {
  border-color: var(--brand);
  background: var(--brand-wash);
}

.tone.is-on::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 15px;
  height: 8px;
  margin-top: -6px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- Voice grid ---------- */

.voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 7px;
}

.voice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.voice:hover {
  border-color: var(--line-strong);
}

.voice b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.voice span {
  display: block;
  font-size: 0.78rem;
  color: var(--fg-3);
  margin-top: 1px;
}

.voice.is-on {
  border-color: var(--brand);
  background: var(--brand-wash);
}

/* Its own control inside the card: hearing a voice must not select it. */
.voice .voice-hear {
  display: inline-block;
  margin-top: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}

.voice .voice-hear:hover {
  text-decoration: underline;
}

/* ---------- Done ---------- */

.done {
  padding-top: 8px;
}

.done-art {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 22px;
  box-shadow: var(--shadow-2);
}

.done-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.channel-link:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.channel-link > svg:first-child {
  width: 21px;
  height: 21px;
  flex: none;
}

.channel-link span {
  flex: 1;
}

.channel-link b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.channel-link em {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--fg-3);
}

.channel-link .chev {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--fg-4);
}

.done-links .btn {
  margin-top: 7px;
}

@media (max-width: 420px) {
  .field-pair,
  .voices {
    grid-template-columns: 1fr;
  }

  .step h1 {
    font-size: 1.5rem;
  }
}

@media (min-width: 600px) {
  .setup {
    box-shadow: var(--shadow-2);
  }
}
