/* ── Onboarding — plant an intention ──
 * Eight screens, one visible at a time. Full-bleed cream, serif display type,
 * one action at the bottom. No progress counter: a walk, not a form. */

#onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.ob-shell {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  padding: max(28px, env(safe-area-inset-top)) 26px max(24px, env(safe-area-inset-bottom));
}

/* ── Back ── */
.ob-back {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  left: 20px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: color .2s ease, background .2s ease;
}
.ob-back:hover { color: var(--text); background: var(--surface); }

/* ── Screens ── */
.ob-screen {
  display: none;
  flex: 1;
  flex-direction: column;
  text-align: center;
}
.ob-screen.active {
  display: flex;
  animation: ob-in .5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes ob-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.ob-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 0;
  min-height: 0;
  overflow-y: auto;
}

.ob-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

/* ── Type ── */
.ob-wordmark {
  font-family: var(--font-head);
  font-size: 27px;
  color: var(--text);
  letter-spacing: .01em;
}

.ob-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.16;
  color: var(--text);
  letter-spacing: -.01em;
}

.ob-lead {
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--text);
  line-height: 1.35;
}

.ob-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 300px;
}

.ob-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-light);
  max-width: 280px;
}

.ob-sprig { font-size: 15px; opacity: .55; line-height: 1; }

.ob-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 220px;
  font-size: 13px;
  opacity: .5;
  color: var(--text-light);
}
.ob-rule::before,
.ob-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--surface-2);
}

/* ── 1 · Seeds ── */
.ob-seeds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.ob-seed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-xl);
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.ob-seed:hover { border-color: var(--accent); }
.ob-seed:active { transform: scale(.98); }
.ob-seed.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-fill);
}
.ob-seed-icon { font-size: 12px; opacity: .85; line-height: 1; }
.ob-seed.active .ob-seed-icon { opacity: 1; }

.ob-seed-own {
  width: 100%;
  border-style: dashed;
  color: var(--text-muted);
}

/* ── 2 · I am growing ____ ── */
.ob-growing {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 10px 0 4px;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--text);
  cursor: text;
}
.ob-growing-lead { white-space: nowrap; }

.ob-growing-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--surface-2);
  padding: 2px 4px 6px;
  outline: none;
  transition: border-color .25s ease;
}
.ob-growing-input:focus { border-bottom-color: var(--primary); }
.ob-growing-input::placeholder { color: var(--text-light); opacity: .5; }
.ob-growing-leaf { font-size: 13px; opacity: .6; }

.ob-seal {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 50%;
  background: var(--surface);
  margin: 6px 0;
}

/* ── 3 · Digital seed ── */
.ob-orb {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, var(--white) 0%, var(--surface) 72%, var(--surface-2) 100%);
  box-shadow: var(--shadow);
  margin: 6px 0 10px;
}
.ob-orb span { font-size: 76px; line-height: 1; }

/* ── 4 · Papaya ── */
.ob-art { font-size: 96px; line-height: 1; margin: 6px 0; }

.ob-callout {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}
.ob-callout-center { text-align: center; justify-content: center; }
.ob-callout strong { color: var(--text); font-weight: 600; }
.ob-callout-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 50%;
  background: var(--surface);
}

/* ── 5 · Journey ── */
.ob-journey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0;
}
.ob-journey span { font-size: 30px; line-height: 1; }
.ob-journey i { font-style: normal; font-size: 13px; color: var(--text-light); }

/* ── 6 · Founding Garden ── */
.ob-spots { margin: 2px 0; }
.ob-spots-number {
  font-family: var(--font-head);
  font-size: 68px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -.02em;
}
.ob-spots-label {
  font-family: var(--font-head);
  font-size: 21px;
  color: var(--text);
  margin-top: 2px;
}

/* ── 7 · Price ── */
.ob-sub-rule {
  position: relative;
  padding-bottom: 12px;
}
.ob-sub-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 130px;
  height: 1px;
  background: var(--surface-2);
}

.ob-price {
  font-family: var(--font-head);
  font-size: 46px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.02em;
}
.ob-price-cur { font-size: 27px; vertical-align: super; }
.ob-price-per { font-size: 15px; color: var(--text-muted); font-family: var(--font-body); }

.ob-includes {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 10px;
  text-align: left;
}
.ob-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.ob-includes li::before {
  content: "";
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FDFAF5' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.75l6 6 9-13.5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.ob-fineprint {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

/* ── Buttons ── */
.ob-btn {
  width: 100%;
  padding: 16px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-fill);
  background: var(--primary);
  border-radius: var(--radius-xl);
  transition: background .2s ease, transform .15s ease, opacity .2s ease;
}
.ob-btn:hover:not(:disabled) { background: var(--primary-dark); }
.ob-btn:active:not(:disabled) { transform: scale(.985); }
.ob-btn:disabled { opacity: .38; cursor: default; }

/* Equal weight to the free exit — see docs/onboarding.md. */
.ob-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-2);
}
.ob-btn-ghost:hover:not(:disabled) { background: var(--surface); border-color: var(--accent); }

/* ── Short viewports ── */
@media (max-height: 700px) {
  .ob-title { font-size: 28px; }
  .ob-body { gap: 11px; }
  .ob-orb { width: 150px; height: 150px; }
  .ob-orb span { font-size: 60px; }
  .ob-art { font-size: 72px; }
  .ob-spots-number { font-size: 54px; }
  .ob-price { font-size: 38px; }
  .ob-includes { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-screen.active { animation: none; }
}


/* ── The one question ── */
.ob-answer {
  width: 100%;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.5;
  resize: none;
  transition: border-color .25s;
}
.ob-answer::placeholder {
  color: var(--text-light);
  font-style: italic;
}
.ob-answer:focus {
  outline: none;
  border-color: var(--primary);
}
