/* The Website launcher (/launch/website) — docs/WEBSITE_LAUNCHER.md.
   Tokens only (public/css/theme.css). Three screens: form, build, reveal. */

.lw-page { margin: 0; background: var(--surface-page); color: var(--ink); font-family: Inter, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.lw { min-height: 60vh; }
.lw-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.lw-screen { padding: 40px 0 64px; }
.lw-kicker { margin: 0 0 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.lw-h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 900; }
.lw-h1--small { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lw-lede { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
.lw-lede--small { font-size: 0.98rem; }
.lw-hint { margin: 6px 0 0; font-size: 0.8rem; color: var(--ink-muted); line-height: 1.5; }
.lw-fine { margin: 10px 0 0; font-size: 0.8rem; color: var(--ink-muted); line-height: 1.5; }
.lw-fine a { color: var(--ink); font-weight: 700; }
.lw-error { margin: 0 0 10px; font-size: 0.88rem; font-weight: 600; color: var(--status-danger-ink, var(--ink)); }

/* ── form ───────────────────────────────────────────────────────────────── */
.lw-intake-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: 40px; align-items: start; }
.lw-how { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.lw-how li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--ink-soft); }
.lw-how b { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-fill); color: var(--brand-ink); font-size: 0.8rem; flex: 0 0 28px; }
.lw-form { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.lw-field { display: grid; gap: 6px; margin: 0; }
.lw-label { font-size: 0.9rem; font-weight: 700; }
.lw-label small { display: block; font-weight: 500; color: var(--ink-muted); font-size: 0.78rem; margin-top: 2px; }
.lw-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.98rem; color: var(--ink); background: var(--surface-page); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.lw-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--surface-sunken); }
.lw-textarea { resize: vertical; min-height: 88px; }
.lw-assets-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lw-assets-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface-page); color: var(--ink); font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.lw-assets-btn:hover { border-color: var(--ink); }
.lw-assets-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lw-assets-list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--surface-sunken); font-size: 0.78rem; }
.lw-assets-list img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.lw-assets-list button { border: 0; background: none; color: var(--ink-muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; }
.lw-assets-list li.is-uploading { opacity: .6; }
.lw-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 15px 20px; border-radius: 999px; border: 0; background: var(--brand-fill); color: var(--brand-ink); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .12s, opacity .12s; }
.lw-go:hover { transform: translateY(-1px); }
.lw-go[disabled] { opacity: .65; cursor: progress; transform: none; }
.lw-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-page); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; text-decoration: none; }
.lw-ghost:hover { border-color: var(--ink); }

/* ── build ──────────────────────────────────────────────────────────────── */
.lw-build-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.lw-progress { display: flex; gap: 10px; }
.lw-progress-num { min-width: 96px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-raised); text-align: center; }
.lw-progress-num b { display: block; font-size: 1.3rem; letter-spacing: -0.02em; }
.lw-progress-num span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); }

.lw-compare { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; gap: 14px; }
.lw-compare-arrow { align-self: center; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-fill); color: var(--brand-ink); font-size: 1.1rem; }
.lw-browser { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface-raised); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-width: 0; }
.lw-browser-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); background: var(--surface-sunken); font-size: 0.74rem; color: var(--ink-muted); }
.lw-dots { display: inline-flex; gap: 5px; }
.lw-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.lw-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-page); border-radius: 999px; padding: 4px 10px; }
.lw-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--surface-page); border: 1px solid var(--line); }
.lw-tag--new { background: var(--brand-fill); color: var(--brand-ink); border-color: transparent; }
.lw-browser-body { position: relative; flex: 1; min-height: 340px; background: var(--surface-page); overflow: hidden; }
.lw-browser-body img.lw-shot { display: block; width: 100%; height: auto; }
.lw-browser-body--frame { min-height: 520px; }
.lw-browser-body--frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lw-before-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; gap: 8px; filter: saturate(.6); }
.lw-before-logo img { max-height: 64px; max-width: 220px; object-fit: contain; margin: 0 auto 6px; display: block; }
.lw-before-name { margin: 0; font-size: 1.1rem; font-weight: 800; }
.lw-before-note { margin: 0; font-size: 0.85rem; color: var(--ink-muted); max-width: 32ch; }
.lw-browser--before .lw-browser-body { background: var(--surface-sunken); }

/* the skeleton of the page being written */
.lw-skeleton { position: absolute; inset: 0; padding: 18px; display: grid; gap: 16px; align-content: start; }
.lw-skeleton > * { background: var(--surface-sunken); border-radius: 10px; position: relative; overflow: hidden; }
.lw-skeleton > *::after, .lw-skeleton span::after, .lw-skeleton i::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--surface-overlay), transparent); animation: lw-shimmer 1.6s infinite; opacity: .7; }
.lw-sk-nav { height: 22px; }
.lw-sk-hero { height: 150px; display: grid; gap: 10px; align-content: center; padding: 20px; background: var(--surface-raised) !important; }
.lw-sk-hero span { display: block; height: 16px; border-radius: 6px; background: var(--surface-sunken); width: 70%; position: relative; overflow: hidden; }
.lw-sk-hero span + span { width: 45%; }
.lw-sk-hero .lw-sk-btn { width: 120px; height: 30px; border-radius: 999px; background: var(--brand-fill); opacity: .25; }
.lw-sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: none !important; }
.lw-sk-cards i { display: block; height: 70px; border-radius: 10px; background: var(--surface-sunken); position: relative; overflow: hidden; }
.lw-sk-lines { display: grid; gap: 8px; background: none !important; }
.lw-sk-lines span { display: block; height: 10px; border-radius: 6px; background: var(--surface-sunken); position: relative; overflow: hidden; }
.lw-sk-lines span + span { width: 60%; }
@keyframes lw-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .lw-skeleton *::after { animation: none; } }

.lw-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.lw-step { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-raised); font-size: 0.86rem; }
.lw-step i { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; background: var(--surface-sunken); color: var(--ink-muted); font-style: normal; }
.lw-step b { display: block; font-weight: 700; }
.lw-step small { display: block; color: var(--ink-muted); margin-top: 2px; line-height: 1.4; min-height: 1.2em; }
.lw-step.is-done i { background: var(--brand-fill); color: var(--brand-ink); }
.lw-step.is-running { border-color: var(--ink); }
.lw-step.is-running i { background: var(--ink); color: var(--surface-page); }
.lw-step.is-failed i { background: var(--status-danger-ink, var(--ink)); color: var(--status-ink, var(--surface-page)); }
.lw-build-note { margin: 16px 0 0; font-size: 0.82rem; color: var(--ink-muted); }

/* ── reveal ─────────────────────────────────────────────────────────────── */
.lw-reveal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.lw-reveal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lw-reveal-actions .lw-go { width: auto; }
.lw-compare--reveal { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
.lw-browser--small .lw-browser-body { min-height: 300px; }
.lw-plans { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.lw-plans-head { text-align: center; max-width: 60ch; margin: 0 auto 22px; }
.lw-plans-head h2 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -0.02em; font-weight: 900; }
.lw-plans-head p { margin: 0; color: var(--ink-soft); }
.lw-period { display: inline-flex; margin-top: 16px; padding: 4px; border-radius: 999px; background: var(--surface-sunken); gap: 4px; }
.lw-period button { border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 700; font-size: 0.86rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.lw-period button small { font-weight: 600; opacity: .75; margin-left: 4px; }
.lw-period button.is-on { background: var(--surface-page); color: var(--ink); box-shadow: var(--shadow-sm); }
.lw-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.lw-plan { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface-raised); display: flex; flex-direction: column; gap: 10px; position: relative; }
.lw-plan.is-popular { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.lw-plan-badge { position: absolute; top: -11px; left: 18px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--brand-fill); color: var(--brand-ink); }
.lw-plan h3 { margin: 0; font-size: 1.1rem; }
.lw-plan-price { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.lw-plan-price small { font-size: 0.85rem; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; margin-left: 4px; }
.lw-plan-sub { margin: 0; font-size: 0.8rem; color: var(--ink-muted); min-height: 1.2em; }
.lw-plan ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; font-size: 0.86rem; color: var(--ink-soft); flex: 1; }
.lw-plan li { display: flex; gap: 8px; align-items: flex-start; }
.lw-plan li i { color: var(--ink); margin-top: 2px; }
.lw-plan .lw-go { margin-top: 10px; }
.lw-plan .lw-ghost { margin-top: 10px; width: 100%; box-sizing: border-box; }
.lw-plans-note { margin: 14px 0 0; text-align: center; font-size: 0.88rem; font-weight: 600; }
.lw-active { margin-top: 36px; padding: 24px; border-radius: 18px; background: var(--surface-raised); border: 1px solid var(--line); text-align: center; }
.lw-active h2 { margin: 0 0 6px; font-size: 1.3rem; }
.lw-active p { margin: 0; color: var(--ink-soft); }

/* ── failure ────────────────────────────────────────────────────────────── */
.lw-failed-inner { max-width: 560px; text-align: center; }
.lw-failed-inner .lw-go { width: auto; margin-top: 18px; }

@media (max-width: 900px) {
  .lw-intake-grid { grid-template-columns: 1fr; gap: 24px; }
  .lw-compare, .lw-compare--reveal { grid-template-columns: 1fr; }
  .lw-compare-arrow { transform: rotate(90deg); justify-self: center; }
  .lw-browser-body { min-height: 240px; }
  .lw-browser-body--frame { min-height: 460px; }
  .lw-reveal-actions .lw-go, .lw-reveal-actions .lw-ghost { width: 100%; }
}
