/* =============================================================================
   Онбординг-контракт
   ============================================================================= */

.ob {
  padding: 20px var(--pad-screen) 110px;
  min-height: 100%;
}

/* ── Прогрес ───────────────────────────────────────────────────────────── */

.ob__progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
}

.dot {
  width: 26px; height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(46, 40, 35, 0.10);
  transition: background 0.3s ease;
}
.dot.is-active { background: var(--accent); }

/* ── Кроки ─────────────────────────────────────────────────────────────── */

.step { display: none; }
.step.is-active { display: block; animation: fade 0.35s ease; }

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

.ob__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.ob__title em { font-style: italic; color: var(--accent); }

.ob__sub {
  font-size: var(--size-sm);
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0 0 22px;
}

.ob__subtitle {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 500;
  margin: 26px 0 12px;
}

/* ── Варіанти вибору ───────────────────────────────────────────────────── */

.opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-card);
  font-family: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.opt:active { transform: scale(0.985); }

.opt.is-selected {
  border-color: var(--accent);
  background: var(--pink-soft);
}

.opt__emoji { font-size: 20px; line-height: 1.2; flex-shrink: 0; }

.opt b {
  display: block;
  font-weight: 500;
  font-size: var(--size-sm);
  margin-bottom: 2px;
}

.opt i {
  display: block;
  font-style: normal;
  font-size: var(--size-xs);
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Тон: цитати курсивом серифом — щоб було чути голос */
.opts--tone .opt i {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--size-sm);
  color: var(--ink);
  opacity: 0.62;
}

/* ── Блок турботи ──────────────────────────────────────────────────────── */

.care {
  background: var(--sage-soft);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 16px;
}

.care__q {
  font-size: var(--size-sm);
  line-height: 1.45;
  margin: 0 0 14px;
}

.care__note {
  font-size: var(--size-xs);
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 12px 0 0;
}

.privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--lilac-soft);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}

.privacy p {
  margin: 0;
  font-size: var(--size-xs);
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ── Фінал ─────────────────────────────────────────────────────────────── */

.done { text-align: center; padding-top: 30px; }

.done__box {
  margin-top: 22px;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-card);
  font-size: var(--size-sm);
}

.done__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}
.done__row:last-child { border-bottom: none; }
.done__row span:first-child { color: var(--ink-muted); font-size: var(--size-xs); }
.done__row span:last-child  { font-weight: 500; text-align: right; }

.done__flag {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--butter-soft);
  border-radius: var(--radius-inner);
  font-size: var(--size-xs);
  line-height: 1.5;
  color: var(--ink-muted);
}


/* ── Навігація онбордингу ──────────────────────────────────────────────── */

.ob__nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 420px;
  margin: 0 auto;
  padding: 14px var(--pad-screen) 20px;
  display: flex;
  gap: 10px;
  background: linear-gradient(to top, var(--bg) 62%, transparent);
  z-index: 10;
}

@media (min-width: 480px) { .ob__nav { position: absolute; } }

/* ── Числові поля ──────────────────────────────────────────────────────── */

.numgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.numgrid .field:first-child { grid-column: 1 / -1; }

.ob__note {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--butter-soft);
  border-radius: var(--radius-inner);
  font-size: var(--size-xs);
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Підсумок норм на фінальному екрані */
.done__targets {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--sage-soft);
  border-radius: var(--radius-inner);
  text-align: left;
}
.done__kcal {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600;
}
.done__macros { font-size: var(--size-xs); color: var(--ink-muted); margin-top: 4px; }
.done__why { font-size: 11px; color: var(--ink-muted); margin-top: 8px; }
