/* Income Launch · launch screens: claim, checkout (+ payment confirmation), setup, boost, done.
   Built on the AvatarFactory classes in app.css (pkg-card, deal, summary, pay, guarantee, upsell, done, store-actions);
   everything here is scoped to .ln-* so it never leaks into other screens. Minimum type size 14px. */

/* ---------- Shared ---------- */
.ln-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex: none; }
.ln-ph { display: inline-flex; align-items: center; justify-content: center; color: var(--muted-2); background: var(--surface-2); }
.ln-ph svg { width: 24px; height: 24px; }
.guarantee a { color: var(--primary); font-weight: 600; text-underline-offset: 2px; padding: 14px 0; } /* inline: a 44px+ tap area, same line */
.ln-coach { display: flex; justify-content: center; margin-top: 18px; }
.ln-coach:has(> [hidden]:only-child) { display: none; }
.ln-coach .coach-pill { max-width: 100%; text-align: left; line-height: 1.25; min-height: 46px; height: auto; padding-top: 6px; padding-bottom: 6px; }
.ln-coach .coach-pill.is-live .cc-ic { background: var(--success-soft); color: var(--success); }
.ln-coach .coach-pill[disabled] { opacity: .6; cursor: default; transform: none; }

/* In-page actions may carry a store name or a configured label: let them wrap instead of overflowing on phones */
.ln-pkg .pkg-cta .btn, .ln-pay .btn, .ln-actions .btn, .ln-upsell .btn, .ln-done .actions .btn, .ln-verify-actions .btn {
  white-space: normal; height: auto; min-height: 56px; padding-top: 12px; padding-bottom: 12px; line-height: 1.25; text-align: center;
}

/* Catalogue still loading on a direct visit: quiet placeholders that only appear if it takes a moment */
.main > .ln-wait { max-width: 680px; margin: 0 auto; display: grid; gap: 14px; animation: fade-in .3s ease .35s both; }
.ln-wait .sk { display: block; height: 72px; border-radius: var(--radius); }
.ln-wait .sk:first-child { height: 132px; border-radius: var(--radius-lg); }

/* ---------- Claim: the package card ---------- */
.ln-pkg .pkg-head .ln-thumb { width: 56px; height: 56px; }
.ln-pkg .pkg-head > div { min-width: 0; }
.ln-pkg .pkg-head .ttl { line-height: 1.2; overflow-wrap: anywhere; }
.ln-pkg .pkg-head .for { line-height: 1.4; margin-top: 2px; }
.ln-pkg .pkg-head .badge svg { width: 13px; height: 13px; }
.ln-pkg .pkg-item .icon-box { background: var(--blue-50); color: var(--primary); }
.ln-pkg .pkg-item > span:nth-child(2) { min-width: 0; }
.ln-pkg .pkg-item b { line-height: 1.35; text-wrap: pretty; }
.ln-pkg .pkg-item span.l { line-height: 1.4; margin-top: 2px; text-wrap: pretty; }
.ln-pkg .pkg-head .badge { flex: none; }
.ln-pkg .pkg-item .price { white-space: nowrap; }
.ln-pkg .pkg-item .price.is-incl { font-size: 14px; font-weight: 600; color: var(--fg-2); } /* "Included": no invented per-line prices */
/* the second group's rows rise after the first group's */
.ln-pkg .pkg-items.is-second > li { animation-delay: calc(400ms + var(--i, 0) * 60ms); }
/* two stacked product thumbs in place of an icon (backup products) */
.ln-stack { position: relative; width: 40px; height: 40px; flex: none; }
.ln-stack img { position: absolute; width: 30px; height: 30px; border-radius: 9px; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 2px var(--surface), var(--shadow-sm); }
.ln-stack img:first-child { left: 0; top: 0; }
.ln-stack img:nth-child(2) { right: 0; bottom: 0; }

.ln-deal .row2 { align-items: baseline; }
/* The hold is the same calm blue pill as on reserve, reveal and checkout (app.css paints .deal .timer red). */
.ln-deal .timer { background: var(--blue-100); color: var(--blue-700); }
.ln-deal .now { color: var(--primary); letter-spacing: -0.01em; }
.ln-today { font-size: 14px; font-weight: 600; color: var(--muted); }
.ln-deal .badge.success svg { width: 13px; height: 13px; }

/* The hold: a countdown pill, and a Restore button once it ends (never a lock-out) */
.ln-hold { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ln-hold .timer, .ln-hold .badge { white-space: nowrap; }
.ln-hold .badge { gap: 6px; }
.ln-hold .badge svg { width: 13px; height: 13px; }
.ln-hold .is-expired b[data-hold] { display: none; }
.ln-restore {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: var(--pill);
  border: 1.5px solid var(--primary); background: var(--surface); color: var(--primary); font-size: 14px; font-weight: 700;
  transition: background .15s, transform .15s;
}
.ln-restore:hover { background: var(--blue-50); }
.ln-restore:active { transform: scale(.97); }
.ln-restore svg { width: 15px; height: 15px; }
.ln-restore:not([hidden]) { animation: rise .35s var(--ease) both; }

.ln-pkg .fine { line-height: 1.45; }
.ln-pkg > .guarantee { margin-top: 22px; }
.ln-pkg > .disclaim { margin-top: 16px; }

/* ---------- Checkout (paid mode) ---------- */
.ln-checkout .summary .who .ln-thumb { width: 56px; height: 56px; border-radius: 12px; }
.ln-checkout .summary .who > div { min-width: 0; }
.ln-checkout .summary .who { flex-wrap: wrap; }
.ln-checkout .summary .line > span:first-child { min-width: 0; }
.ln-checkout .summary .trust { margin-top: 16px; justify-content: flex-start; gap: 10px 18px; }
.ln-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.ln-note svg { width: 16px; height: 16px; color: var(--primary); flex: none; margin-top: 2px; }
.ln-pay-head b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.ln-pay-head span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.ln-pay .method { margin-top: 18px; }
.ln-pay .method > svg { color: var(--primary); }
.ln-mini { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.ln-mini li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; font-weight: 600; color: var(--fg-2); line-height: 1.35; }
.ln-mini i { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--primary); font-style: normal; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ln-pay .btn { margin-top: 22px; }
.ln-pay .secure { margin-top: 14px; }
.ln-paid-q { line-height: 1.5; }
.ln-paid-q a { color: var(--fg-2); font-weight: 600; padding: 14px 0; }
.ln-checkout + .disclaim { margin-top: 22px; }

/* Payment confirmation (back from the hosted checkout) */
.ln-verify { max-width: 560px; margin: 0 auto; text-align: center; padding-top: 12px; }
.ln-verify-ic { position: relative; width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 50%; background: var(--blue-50); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.ln-verify-ic svg { width: 28px; height: 28px; }
.ln-verify-ic.is-ok { background: var(--success-soft); color: var(--success); animation: rise .45s var(--ease) both; }
.ln-spin { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--primary); animation: spin 1.1s linear infinite; }
.ln-verify .q-title { font-size: clamp(28px, 3vw, 38px); }
.ln-verify-who { margin: 26px auto 0; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); text-align: left; box-shadow: var(--shadow-sm); max-width: 100%; }
.ln-verify-who .ln-thumb { width: 44px; height: 44px; border-radius: 10px; }
.ln-verify-who > div { min-width: 0; }
.ln-verify-who b { display: block; font-size: 15px; line-height: 1.25; }
.ln-verify-who span { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }
.ln-verify-actions { margin-top: 28px; display: grid; gap: 12px; justify-items: center; }
.ln-verify-actions .btn-ghost { gap: 8px; text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 16px; min-width: 220px; }
.ln-verify-actions .btn-ghost svg { width: 18px; height: 18px; }
.ln-verify .fine { margin-top: 18px; line-height: 1.5; text-wrap: balance; }
.ln-verify .ln-ref { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ln-verify .fine a { color: var(--fg-2); font-weight: 600; }

/* ---------- Setup + boost: product picture beside the text (AvatarFactory store / finish screens) ---------- */
.ln-two { align-items: start; }
.ln-visual { min-width: 0; }
.ln-visual-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.ln-visual-img img { width: 100%; height: 100%; object-fit: cover; background-size: cover; }
.ln-visual-img .ln-ph { position: absolute; inset: 0; }
.ln-visual-img .ln-ph svg { width: 48px; height: 48px; }
.ln-visual-img .badge { position: absolute; left: 14px; top: 14px; max-width: calc(100% - 28px); }
.ln-visual-img .badge svg { width: 13px; height: 13px; }
.ln-visual-cap { margin-top: 14px; text-align: center; }
.ln-visual-cap b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ln-visual-cap span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }

/* The launch steps: a quiet numbered timeline */
.ln-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; }
.ln-steps > li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; animation: rise .5s var(--ease) both; }
.ln-steps > li:nth-child(1) { animation-delay: .14s; }
.ln-steps > li:nth-child(2) { animation-delay: .2s; }
.ln-steps > li:nth-child(3) { animation-delay: .26s; }
.ln-steps > li:nth-child(4) { animation-delay: .32s; }
.ln-steps > li:nth-child(5) { animation-delay: .38s; }
.ln-steps > li:last-child { padding-bottom: 0; }
.ln-steps > li::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--blue-100); }
.ln-steps > li:last-child::before { display: none; }
.ln-steps > li > i { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-50); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--blue-200); font-style: normal; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.ln-steps > li:first-child > i { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.ln-steps > li > div { min-width: 0; }
.ln-steps b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; padding-top: 6px; }
.ln-steps p { margin-top: 3px; font-size: 15px; color: var(--muted); line-height: 1.45; text-wrap: pretty; }

/* The hooks promised in the package, ready to copy */
.ln-hooks { margin-top: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.ln-hooks summary { list-style: none; cursor: pointer; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; font-size: 15px; font-weight: 700; color: var(--primary); border-radius: var(--radius); }
.ln-hooks summary::-webkit-details-marker { display: none; }
.ln-hooks summary svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.ln-hooks[open] summary svg { transform: rotate(180deg); }
.ln-hooks summary:hover { background: var(--blue-50); }
.ln-hooks ul { padding: 0 12px 12px; display: grid; gap: 8px; }
.ln-hooks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--surface-2); font-size: 15px; line-height: 1.4; color: var(--fg); }
.ln-copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 88px; padding: 0 14px; border-radius: var(--pill); border: 1.5px solid var(--border-strong); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--fg); transition: border-color .15s, color .15s, background .15s; }
.ln-copy svg { width: 16px; height: 16px; color: var(--primary); }
.ln-copy:hover { border-color: var(--primary); color: var(--primary); }
.ln-copy.is-done { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-700); }

.ln-setup .ln-coach { justify-content: flex-start; margin-top: 22px; }
.ln-actions { margin-top: 28px; }
.ln-actions .btn { gap: 10px; }
.ln-actions .btn svg { width: 17px; height: 17px; }

/* Boost */
.ln-upsell { margin-top: 24px; }
.ln-upsell .badge svg { width: 13px; height: 13px; }
.ln-upsell .actions { justify-items: center; }
.ln-upsell .actions .btn { width: 100%; min-width: 0; }

/* ---------- Done ---------- */
.ln-done .portrait.ln-sq { width: 220px; aspect-ratio: 1 / 1; background: var(--surface-2); position: relative; }
.ln-done .portrait.ln-sq .ln-ph { position: absolute; inset: 0; }
.ln-done .q-head { margin-bottom: 26px; }
.ln-next { list-style: none; margin: 0 auto; padding: 4px 20px; max-width: 520px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ln-next li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.ln-next li:last-child { border-bottom: 0; }
.ln-next-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.ln-next-ic svg { width: 19px; height: 19px; }
.ln-next b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; padding-top: 2px; }
.ln-next p { margin-top: 3px; font-size: 14px; color: var(--muted); line-height: 1.45; text-wrap: pretty; }
.ln-done .actions .btn { gap: 10px; }
.ln-done .actions .btn svg { width: 17px; height: 17px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* setup / boost: the big picture becomes a compact row above the text */
  .ln-two { gap: 22px; }
  .ln-visual { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
  .ln-visual-img { border-radius: 14px; box-shadow: none; }
  .ln-visual-img .badge { display: none; }
  .ln-visual-cap { margin-top: 0; text-align: left; }
  .ln-visual-cap b { font-size: 17px; }
  .ln-visual-cap span { font-size: 14px; line-height: 1.4; }
  .ln-checkout .summary .trust { justify-content: flex-start; }
}
@media (max-width: 720px) {
  /* the "Preview ready" badge drops under the store name, so the name keeps one line */
  .ln-pkg .pkg-head { flex-wrap: wrap; row-gap: 8px; }
  .ln-pkg .pkg-head > div { flex: 1 1 calc(100% - 70px); }
  .ln-pkg .pkg-head .badge { margin-left: 68px; }
  .ln-pkg .pkg-item { gap: 12px; }
  .ln-pkg .pkg-item .price { font-size: 14px; }
  .ln-pkg .pkg-head { gap: 12px; }
  .ln-trust { gap: 10px 20px; }
  .ln-deal { padding: 16px; }
  .ln-hold { width: 100%; }
  .ln-checkout .summary .who .held { margin-left: 68px; }
  .ln-steps { margin-top: 22px; }
  .ln-steps b { font-size: 16px; }
  .ln-steps p { font-size: 14px; }
  .ln-hooks li { font-size: 14px; }
  .ln-actions { margin-top: 24px; align-items: stretch; }
  .ln-actions .btn-link { align-self: center; }
  .ln-done .portrait.ln-sq { width: 176px; margin-bottom: 22px; }
  .ln-next { padding: 2px 16px; }
  .ln-verify-ic { width: 68px; height: 68px; margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ln-spin { animation: none; border-top-color: var(--blue-100); }
  .ln-restore:not([hidden]), .ln-steps > li { animation: none; }
}
