/* Sign-up (#/welcome), in the website's editorial look: the form on paper, and beside it a dark
   sheet where the workspace takes shape as the person fills it in. */
.wl {
  --paper: #f6f5f1; --navy: #0e1726; --blue: #3d44e5; --peri: #c9ccf8; --lav: #eef0fe; --rule: rgb(14 23 38 / 0.08);
  position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); background: var(--paper); color: var(--ink);
}
.wl-main { display: flex; flex-direction: column; overflow-y: auto; padding: 28px clamp(24px, 6vw, 88px) 48px; }
.wl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wl-logo { display: inline-flex; align-items: center; gap: 9px; font: 650 18px/1 var(--font-display); letter-spacing: -0.02em; }
.wl-logo img { width: 22px; }
.wl-have { font-size: 14px; color: var(--muted); }
.wl-have a { margin-left: 4px; font-weight: 600; color: var(--ink); }
.wl-have a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wl-prog { width: min(560px, 100%); margin-top: 40px; }
.wl-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wl-bars > * { position: relative; height: 4px; overflow: hidden; border-radius: 4px; background: rgb(14 23 38 / 0.09); }
.wl-bars > .done { background: var(--ink); cursor: pointer; transition: opacity 0.15s; }
.wl-bars > .done::before { content: ""; position: absolute; inset: -10px 0; }
.wl-bars > .done:hover { opacity: 0.7; }
.wl-bars > .on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue); transform-origin: left; animation: wl-fill 0.7s var(--ease) both; }
@keyframes wl-fill { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .wl-bars > .on::after { animation: none; } }

.wl-body { width: min(560px, 100%); margin: auto 0; padding: 36px 0 16px; animation: view-in 0.3s var(--ease); }
.wl-body h1 { margin: 0; font: 400 clamp(38px, 4.4vw, 60px)/1.02 var(--font-display); letter-spacing: -0.048em; text-wrap: balance; }
.wl-sub { margin: 16px 0 0; max-width: 480px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

.wl-form { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.wl-fld { display: flex; flex-direction: column; gap: 7px; }
.wl-fld > span:first-child { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wl-fld em { margin-left: 4px; font-style: normal; font-weight: 400; color: var(--muted); }
.wl-fld input, .wl-fld textarea { width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); font: 400 16px var(--font); color: var(--ink); outline: 0; transition: box-shadow 0.15s; }
.wl-fld textarea { height: auto; padding: 14px 18px; line-height: 1.5; resize: vertical; }
.wl-fld input:focus, .wl-fld textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.wl-inline { display: flex; gap: 8px; }
.wl-inline .ed-btn { flex: none; height: 52px; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-chips button { height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); font-size: 14px; font-weight: 550; }
.wl-chips button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wl-chips button.on { background: var(--ink); color: #fff; box-shadow: none; }

.wl-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.wl-actions .ed-btn { min-width: 190px; }
.wl-back { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.wl-back:hover { color: var(--ink); }
.wl-fine { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.wl-fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.wl-err { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; font-weight: 550; color: #c2410c; }

/* Step 3: the five apps, the one action, and the live status */
.wl-ais { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.wl-ai { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); transition: transform 0.15s var(--ease), box-shadow 0.15s; }
.wl-ai:hover { transform: translateY(-2px); }
.wl-ai .ai.lg { border-radius: 12px; }
.wl-ai b { font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.wl-ai small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 550; color: var(--muted); }
.wl-ai.on { box-shadow: inset 0 0 0 2px var(--ink); }
.wl-ai.done small { color: #12a150; }
.wl-how { margin-top: 14px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); animation: view-in 0.25s var(--ease); }
.wl-how ol { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.wl-how li { display: flex; align-items: flex-start; gap: 12px; }
.wl-how li > span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lav); color: var(--blue); font-size: 12px; font-weight: 700; }
.wl-how li p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; }
.wl-copy { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--navy); color: #e3e6ff; }
.wl-copy code { flex: 1; min-width: 0; overflow-x: auto; padding: 6px 0; font: 500 13px/1.5 var(--mono); white-space: pre; scrollbar-width: none; }
.wl-copy .ed-btn { flex: none; gap: 6px; height: 40px; padding: 0 16px; background: #fff; color: var(--ink); }
.wl-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.wl-status.connected { color: #0b7a3b; }
.wl-status.connected svg { color: #12a150; }
.wl-dots { display: inline-flex; flex: none; gap: 3px; }
.wl-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: eh-dot 1s infinite; }
.wl-dots i:nth-child(2) { animation-delay: 0.15s; }
.wl-dots i:nth-child(3) { animation-delay: 0.3s; }

/* Step 4: the first thing to ask, and what to do next */
.wl-prompt { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 16px 16px 18px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.wl-prompt p { flex: 1; margin: 0; font: 400 18px/1.4 var(--font-display); letter-spacing: -0.01em; }
.wl-prompt .ai { flex: none; border-radius: 50%; }
.wl-prompt .ed-btn { flex: none; gap: 6px; height: 40px; padding: 0 16px; }
.wl-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.wl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); text-align: left; transition: transform 0.15s var(--ease); }
.wl-card:hover { transform: translateY(-2px); }
.wl-card .eb-ic { width: 40px; height: 40px; margin-bottom: 8px; }
.wl-card .eb-ic svg { width: 19px; height: 19px; }
.wl-card b { font-size: 15px; }
.wl-card small { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* The photo: full height, a slow drift, one line of white text */
/* The photo is shown heavily out of focus, like a lens wide open: light and colour carry it, no face is
   readable. --wl-blur sets how much; the grain on top keeps it feeling like film, not a render. */
.wl-side { --wl-blur: 0px; position: relative; margin: 12px; overflow: hidden; border-radius: 32px; background: #1a1f2a; }
.wl-side::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px; opacity: 0.22; mix-blend-mode: overlay; }
.wl-photo { position: absolute; inset: 0; margin: 0; animation: wl-in 0.7s var(--ease) both; }
.wl-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(var(--wl-blur)) saturate(1.15) brightness(0.92); animation: wl-drift 24s ease-in-out infinite alternate; }
.wl-photo figcaption { position: absolute; z-index: 2; left: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); bottom: clamp(28px, 4vw, 52px); color: #fff; }
.wl-mark { width: 26px; margin-bottom: 18px; filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.35)); }
.wl-photo p { max-width: 520px; margin: 0; font: 400 clamp(28px, 2.9vw, 44px)/1.1 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / 0.45), 0 1px 3px rgb(0 0 0 / 0.3); }
@keyframes wl-in { from { opacity: 0; } }
@keyframes wl-drift { from { transform: scale(1.14); } to { transform: scale(1.2) translate3d(-1.2%, -0.8%, 0); } }
@media (prefers-reduced-motion: reduce) { .wl-photo, .wl-photo > img { animation: none; } }

@media (max-width: 900px) {
  .wl { display: block; overflow-y: auto; }
  .wl-main { overflow: visible; padding: 20px 18px 8px; }
  .wl-prog { margin-top: 24px; }
  .wl-body { margin: 0; padding-top: 24px; }
  .wl-ais { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-next { grid-template-columns: minmax(0, 1fr); }
  .wl-actions .ed-btn { flex: 1; min-width: 0; }
  .wl-side { height: 520px; margin: 8px 12px 16px; border-radius: 26px; }
}
