/* Sign-up and first-time setup: the form on the left, a live phone preview of the page on the right.
   Sits on top of auth.css. */

body.onboard { padding: 28px 24px 40px; align-items: stretch; }
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1080px; margin: 0 auto; }
.ob-wrap { width: 100%; max-width: 1080px; margin: 0 auto; flex: 1; display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 24px; }
.ob-main { padding-top: max(24px, 6vh); }
.ob-main { width: 100%; }
.ob-main .screen { margin-top: 0; max-width: 460px; }

/* step progress: a row of labelled segments that fill as you go */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 6px; min-width: 64px; font-size: 12px; font-weight: 600; color: #6f6c68; }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background .4s; }
.steps li.done::before, .steps li.now::before { background: var(--coral); }
.steps li.now { color: var(--text); }
.steps li.done { color: var(--muted); }

/* each step slides in */
.screen.enter { animation: obIn .45s cubic-bezier(.16, 1, .3, 1); }
.screen.back { animation: obBack .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes obIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes obBack { from { opacity: 0; transform: translateX(-28px); } }
@media (prefers-reduced-motion: reduce) { .screen.enter, .screen.back { animation: none; } }

/* the phone */
.ob-preview { display: grid; justify-items: center; gap: 14px; position: sticky; top: 24px; }   /* stays in view while long steps scroll */
.ob-phone { position: relative; height: min(700px, calc(100dvh - 150px)); aspect-ratio: 390 / 844; border-radius: 48px; padding: 10px; background: #050506; border: 1px solid #2d2d30;
  box-shadow: 0 0 0 1px #000, 0 40px 100px rgb(0 0 0 / .65), inset 0 0 0 2px #1a1a1c; }
.ob-phone::before { content: ""; position: absolute; top: 19px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #000; z-index: 4; }
.ob-screen { width: 100%; height: 100%; border-radius: 39px; overflow: hidden auto; background: #111; scrollbar-width: none; position: relative; }
.ob-screen::-webkit-scrollbar { display: none; }
.ob-screen .llpage { min-height: 100%; }
.ob-screen .llpage-inner { padding-top: 60px; }
.ob-url { font-size: 14px; color: var(--muted); font-weight: 600; }
.ob-url b { color: var(--text); }
.ob-glow { position: absolute; inset: -18% -30%; z-index: -1; background: radial-gradient(closest-side, rgb(251 146 128 / .16), transparent); pointer-events: none; }

/* form bits used by the setup steps */
.lede { color: var(--muted); margin-top: 8px; }
.ob-fields { display: grid; gap: 16px; margin-top: 28px; }
.ob-fields label span { color: var(--muted); font-weight: 500; }
textarea.in { width: 100%; min-height: 92px; padding: 14px 16px; resize: vertical; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); }
textarea.in:focus { outline: none; border-color: var(--coral); }
.count { font-size: 12px; color: #6f6c68; text-align: right; margin-top: 4px; }
.ob-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 28px; }
.ob-actions .btn.secondary { width: auto; padding: 0 20px; }
.skip { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; margin-top: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* questions */
.eyebrow { font-size: 13px; font-weight: 700; color: var(--coral); letter-spacing: .02em; margin-bottom: 10px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; font-weight: 600; font-size: 15px; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.opt:hover { border-color: #4a4a4a; transform: translateY(-1px); }
.opt[aria-pressed="true"] { border-color: var(--coral); background: rgb(251 146 128 / .1); }
.opt-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--field); font-size: 19px; flex: none; }
.opt-ic img, .opt-ic .mono { width: 20px; height: 20px; }
.opt-ic .mono { background: var(--text); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.look.suggested { position: relative; }
.look.suggested::before { content: "Suggested"; position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 8px; border-radius: 999px; background: var(--coral); color: #1a1a1a; font-size: 11px; font-weight: 800; }
@media (max-width: 420px) { .opts { grid-template-columns: 1fr; } }

/* profile picture */
.avatar-pick { display: flex; align-items: center; gap: 16px; }
.avatar-pick .av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; background: var(--panel); border: 1px dashed #4a4a4a; font-size: 30px; font-weight: 800; color: var(--muted); cursor: pointer; transition: border-color .2s; }
.avatar-pick .av:hover { border-color: var(--coral); }
.avatar-pick .av img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick p { font-size: 14px; color: var(--muted); }
.avatar-pick .btn { width: auto; height: 40px; padding: 0 16px; font-size: 14px; margin-top: 8px; }

/* platforms */
.plat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 24px; }
.plat { aspect-ratio: 1; display: grid; place-items: center; position: relative; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: transform .15s, border-color .2s, background .2s; }
.plat:hover { border-color: #4a4a4a; transform: translateY(-2px); }
.plat img, .plat .mono { width: 24px; height: 24px; }
.plat .mono { background: var(--text); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.plat[aria-pressed="true"] { border-color: var(--coral); background: rgb(251 146 128 / .1); }
.plat[aria-pressed="true"]::after { content: ""; position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231a1a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.handles { display: grid; gap: 10px; margin-top: 20px; }
.handle { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); animation: obIn .35s cubic-bezier(.16, 1, .3, 1); }
.handle:focus-within { border-color: var(--coral); }
.handle img, .handle .mono { width: 20px; height: 20px; flex: none; }
.handle .mono { background: var(--text); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.handle input { height: 100%; border: 0; background: none; padding: 0 4px; }
.handle input:focus { border: 0; }
.handle button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; flex: none; }
.handle button:hover { background: var(--panel); color: var(--text); }

/* looks */
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.look { display: grid; gap: 8px; padding: 6px 6px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--text); font: inherit; transition: border-color .2s, transform .15s; }
.look:hover { transform: translateY(-2px); }
.look[aria-pressed="true"] { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.look .thumb { display: block; aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden; background: #111; }
.look .thumb img, .look .thumb canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.look b { font-size: 13px; font-weight: 700; padding: 0 4px; }
.sub-title { font-size: 14px; font-weight: 700; margin-top: 26px; }
.font-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { height: 42px; padding: 0 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 17px; cursor: pointer; transition: border-color .2s; }
.chip[aria-pressed="true"] { border-color: var(--coral); background: rgb(251 146 128 / .1); }
/* finished */
.done-mark { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgb(251 146 128 / .14); margin-bottom: 22px; animation: pop .6s cubic-bezier(.34, 1.56, .64, 1); }
.done-mark svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.share { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding: 6px 6px 6px 16px; border-radius: var(--radius); background: var(--field); border: 1px solid var(--line); }
.share span { flex: 1; min-width: 0; font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share .btn { width: auto; height: 42px; padding: 0 16px; font-size: 14px; }
.tip { margin-top: 14px; font-size: 14px; color: var(--muted); }
.ob-final { display: grid; gap: 10px; margin-top: 28px; }

/* phones and small screens: the preview tucks away behind a button */
.preview-btn { display: none; }
@media (max-width: 900px) {
  .ob-wrap { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .ob-main { padding-top: 0; }
  .ob-main .screen { margin: 36px auto 0; }
  .ob-preview { display: none; position: static; }
  .ob-preview.open { display: grid; position: fixed; inset: 0; z-index: 50; place-content: center; background: rgb(10 10 10 / .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 20px; }
  .ob-preview.open .ob-phone { height: min(640px, calc(100dvh - 120px)); }
  .preview-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .steps li { min-width: 0; flex: 1; font-size: 11px; }
  .ob-top { flex-wrap: wrap; }
  .ob-top .steps { order: 3; width: 100%; margin-top: 16px; }
  .plat-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 420px) { .plat-grid { grid-template-columns: repeat(4, 1fr); } .looks { grid-template-columns: repeat(2, 1fr); } body.onboard { padding: 20px 16px 32px; } }

/* when the landing page shows these screens inside its phones, drop the mobile preview button */
.embedded .preview-btn { display: none !important; }

/* finished screen: quiet type, the link, three short steps, one button */
.done-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.done-link { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding: 0 6px 0 18px; height: 58px; border-radius: var(--radius); background: var(--field); border: 1px solid var(--line); }
.done-url { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.done-copy { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 14px/1 "Public Sans", sans-serif; cursor: pointer; transition: border-color .15s, color .15s; }
.done-copy:hover { border-color: #4a4a4a; }
.done-copy svg { width: 17px; height: 17px; }
.done-copy.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.done-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.done-steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.done-steps li::before { content: counter(s); width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text); }
.done-steps b { color: var(--text); font-weight: 600; }
.done-go { margin-top: 30px; gap: 10px; }
.done-go svg { width: 18px; height: 18px; transition: transform .2s; }
.done-go:hover svg { transform: translateX(3px); }
