/* ═══════════════════════════════════════════════════════════
   LAUNCH  —  onboarding, empty-state, privacy, install hint.
   Uses the app's warm-paper tokens; terracotta accent.
   ═══════════════════════════════════════════════════════════ */

/* ─── ONBOARDING OVERLAY ───────────────────────────── */
.ob-backdrop {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(26,24,20,0.58);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.ob-backdrop.show { display: flex; }
.ob-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 560px; max-width: 100%; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(26,24,20,0.42);
  animation: ob-in 0.3s cubic-bezier(0.2,0.8,0.3,1);
}
@keyframes ob-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.ob-hero {
  text-align: center; padding: 38px 40px 26px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 1px 1px, rgba(180,57,31,0.06) 1px, transparent 0) 0 0 / 18px 18px,
    var(--paper-warm);
}
.ob-logo {
  font-family: var(--display); font-weight: 600; font-size: 30px;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1;
}
.ob-logo-tag {
  display: inline-block; margin-top: 9px;
  font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-soft); background: var(--accent-soft);
  border-radius: 4px; padding: 2px 7px;
}
.ob-hero h2 {
  font-family: var(--display); font-weight: 500; font-style: italic; font-size: 22px;
  color: var(--ink); margin: 18px 0 8px; letter-spacing: -0.01em;
}
.ob-hero p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; max-width: 420px; margin: 0 auto; }

.ob-choices { padding: 22px 28px 10px; display: flex; flex-direction: column; gap: 11px; }
.ob-choice {
  display: flex; align-items: center; gap: 15px; text-align: left;
  width: 100%; background: var(--paper); border: 1px solid var(--line);
  border-radius: 11px; padding: 15px 17px; cursor: pointer; font-family: var(--body);
  transition: border-color 0.14s, background 0.14s, transform 0.05s;
}
.ob-choice:hover { border-color: var(--accent); background: var(--paper-warm); }
.ob-choice:active { transform: translateY(1px); }
.ob-choice.primary { border-color: var(--ink); background: var(--ink); }
.ob-choice.primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.ob-ic {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.ob-choice.primary .ob-ic { background: rgba(250,247,240,0.14); color: var(--paper); }
.ob-txt { flex: 1; min-width: 0; }
.ob-txt .t { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.ob-txt .s { display: block; font-size: 12px; color: var(--ink-mute); line-height: 1.4; }
.ob-choice.primary .ob-txt .t { color: var(--paper); }
.ob-choice.primary .ob-txt .s { color: rgba(250,247,240,0.66); }
.ob-arrow { flex: none; color: var(--ink-mute); font-size: 16px; }
.ob-choice.primary .ob-arrow { color: rgba(250,247,240,0.7); }

.ob-foot {
  padding: 14px 28px 24px; text-align: center;
  font-size: 11.5px; color: var(--ink-mute); line-height: 1.5;
}
.ob-foot a { color: var(--accent); text-decoration: none; font-weight: 500; cursor: pointer; }
.ob-foot a:hover { text-decoration: underline; }
.ob-skip {
  border: none; background: transparent; color: var(--ink-mute); cursor: pointer;
  font-family: var(--body); font-size: 12px; padding: 4px;
}
.ob-skip:hover { color: var(--ink); }

/* ─── EMPTY-STATE CANVAS ACTIONS (augments #empty-canvas) ─── */
.empty-canvas .eg-actions {
  display: inline-flex; gap: 9px; margin-top: 20px;
  flex-wrap: wrap; justify-content: center;
}
.empty-canvas .eg-btn {
  font-family: var(--body); font-size: 13px; font-weight: 600; cursor: pointer;
  border-radius: 8px; padding: 9px 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background 0.14s, border-color 0.14s;
}
.empty-canvas .eg-btn:hover { background: var(--paper-warm); border-color: var(--ink-mute); }
.empty-canvas .eg-btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty-canvas .eg-btn.primary:hover { background: var(--ink-soft); }

/* ─── PRIVACY MODAL BODY ───────────────────────────── */
.privacy-body { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.privacy-body .pv-lead {
  background: var(--teal-soft); border: 1px solid var(--teal);
  border-radius: 9px; padding: 13px 15px; margin-bottom: 18px;
  color: #14543f; font-size: 13px;
}
.privacy-body .pv-lead b { color: #0f3d2e; }
.privacy-body h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin: 18px 0 7px;
}
.privacy-body p { margin-bottom: 10px; }
.privacy-body ul { margin: 0 0 10px 0; padding-left: 18px; }
.privacy-body li { margin-bottom: 6px; }
.privacy-body b { color: var(--ink); font-weight: 600; }

/* ─── INSTALL HINT (PWA) ───────────────────────────── */
.install-hint {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 1250; display: none; align-items: center; gap: 13px;
  background: var(--ink); color: var(--paper);
  border-radius: 11px; padding: 12px 14px 12px 17px;
  box-shadow: 0 16px 40px rgba(26,24,20,0.32); font-size: 13px; max-width: 92vw;
  animation: ob-in 0.3s ease;
}
.install-hint.show { display: flex; }
/* Never float the install hint over a modal, the pricing wizard, a nudge,
   or the onboarding overlay. */
body:has(.pw-backdrop.show) .install-hint,
body:has(.pw-nudge-backdrop.show) .install-hint,
body:has(.ob-backdrop.show) .install-hint,
body:has(.modal-backdrop.show) .install-hint,
body:has(.los-overlay.show) .install-hint,
body:has(.qf-overlay.show) .install-hint,
body:has(.m-menu-overlay.show) .install-hint { display: none !important; }
.install-hint b { font-weight: 600; }
.install-hint .ih-cta {
  flex: none; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: var(--body);
}
.install-hint .ih-cta:hover { filter: brightness(1.08); }
.install-hint .ih-x {
  flex: none; border: none; background: transparent; color: rgba(250,247,240,0.6);
  cursor: pointer; font-size: 17px; line-height: 1; padding: 2px 4px;
}
.install-hint .ih-x:hover { color: var(--paper); }

@media (max-width: 560px) {
  .ob-hero { padding: 30px 24px 22px; }
  .ob-choices { padding: 18px 18px 6px; }
}
