/* ==========================================================================
   start.html — sign-up. Same system as the homepage (tokens, pills, orbs,
   passes come from style.css). Left: three-step form. Right: live preview
   in a dusk panel that updates as you type.
   ========================================================================== */
.start-page { background: #000; }
.start { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 12px; padding: 12px; }

/* --- left column --- */
.start-left { display: flex; flex-direction: column; min-width: 0; padding: 16px clamp(16px, 3vw, 44px) 28px; }
.start-nav { display: flex; align-items: center; gap: 22px; min-height: 52px; }
.progress { position: relative; flex: 1; max-width: 260px; height: 4px; border-radius: 999px; overflow: hidden; margin-left: auto;
  background: linear-gradient(90deg, #3a4466, #8a8fae 35%, #dbb59d 65%, #ff8d3f); }
.progress span { position: absolute; top: 0; bottom: 0; right: 0; left: var(--p, 33.3%); background: #1d1d21; transition: left .7s var(--ease); }
.step-count { color: var(--grey); white-space: nowrap; }

.start-form { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; padding: clamp(28px, 6vh, 64px) 0; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; animation: stepIn .7s var(--ease); }
.step[hidden] { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.step-title { font: 400 clamp(34px, 3.6vw, 54px)/1.02 var(--sans); letter-spacing: -.045em; }
.step-title em { font-style: normal; color: var(--grey); }
.step-sub { color: var(--grey); margin-top: -6px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field-label { font-size: 13px; color: #b9b9be; }
.field-label small { color: var(--grey); font-size: 12px; }
.field input:not([type="radio"]) { width: 100%; height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: #fff; font: 400 15px var(--sans); color-scheme: dark;
  transition: border-color .25s, box-shadow .25s, background .25s; }
.field input::placeholder { color: #55555b; }
.field input:hover { background: #1a1a1d; }
.field input:focus { outline: none; border-color: rgba(255, 255, 255, .32); box-shadow: 0 0 0 4px rgba(138, 147, 200, .14); }
.field.bad input { border-color: rgba(255, 122, 70, .65); box-shadow: 0 0 0 4px rgba(255, 122, 70, .1); }
.err { display: none; padding-left: 22px; font-size: 12.5px; color: #ff9a6a; }
.field.bad .err { display: block; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 58px !important; }
.input-wrap input::-ms-reveal, .input-wrap input::-ms-clear { display: none; } /* Edge adds its own eye icon */
.peek { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--grey); transition: background .25s, color .25s; }
.peek:hover, .peek[aria-pressed="true"] { background: rgba(255, 255, 255, .08); color: #fff; }
.peek svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* password strength: a short horizon that fills with the dusk */
.strength { display: flex; align-items: center; gap: 12px; padding-left: 22px; font-size: 12.5px; color: var(--grey); }
.strength-bar { position: relative; width: 120px; height: 3px; border-radius: 999px; overflow: hidden; background: linear-gradient(90deg, #3a4466, #8a8fae 35%, #dbb59d 65%, #ff8d3f); }
.strength-bar span { position: absolute; top: 0; bottom: 0; right: 0; left: var(--s, 0%); background: #2a2a2e; transition: left .5s var(--ease); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--panel-2); color: var(--grey); font-size: 13.5px; transition: background .25s, color .25s; }
.chips button:hover { color: #fff; }
.chips button[aria-pressed="true"] { background: var(--panel-on); color: #fff; }
.chips button[aria-pressed="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #ff8d3f; box-shadow: 0 0 8px #ff8d3f; vertical-align: 1px; }

.swatches { display: flex; gap: 10px; }
.swatches button { width: 52px; height: 52px; padding: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s; }
.swatches button:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.swatches button[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px #fff; }
.swatches .orb { display: block; width: 100%; box-shadow: none; }

.stepper { display: inline-flex; align-items: center; align-self: flex-start; height: 54px; padding: 6px; gap: 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.stepper button { width: 42px; height: 42px; border-radius: 50%; font-size: 20px; color: #fff; background: rgba(255, 255, 255, .06); transition: background .25s; }
.stepper button:hover { background: rgba(255, 255, 255, .14); }
.stepper output { min-width: 72px; text-align: center; font: 400 16px var(--mono); font-variant-numeric: tabular-nums; }

.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.plan-pick label { position: relative; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick span { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 24px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--grey); transition: color .3s, border-color .3s; }
.plan-pick span::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(ellipse 80% 50% at 50% 120%, rgba(255, 141, 63, .55), transparent 70%), linear-gradient(180deg, #2b3250, #4b5270 70%, #8b7d86); }
.plan-pick b { font-weight: 400; font-size: 15px; color: #fff; }
.plan-pick input:checked + span { color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .18); }
.plan-pick input:checked + span::before { opacity: 1; }
.plan-pick input:focus-visible + span { outline: 1.5px solid #fff; outline-offset: 3px; }

.step-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.step-actions .pill-light { min-width: 150px; }
.fine { font-size: 12.5px; color: var(--grey); }
.u { text-decoration: underline; text-underline-offset: 3px; }

.step-done:focus { outline: none; }
.done-list { display: flex; flex-direction: column; gap: 6px; }
.done-list li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--panel-2); font-size: 14px; color: var(--grey); }
.done-list li b { font-weight: 400; color: #fff; }
.done-list i { width: 14px; height: 8px; margin: 0 4px 3px 2px; border-left: 1.6px solid #ffb27a; border-bottom: 1.6px solid #ffb27a; transform: rotate(-45deg); flex: none; }

/* --- right column: live preview --- */
.preview { position: sticky; top: 12px; height: calc(100svh - 24px); min-height: 640px; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 4vh, 40px); padding: 28px;
  background: linear-gradient(180deg, #1b2036 0%, #262c48 36%, #3d4462 64%, #6d6a80 86%, #a88c88 100%); }
.preview-top { position: absolute; left: 24px; right: 24px; top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-top .label { color: rgba(255, 255, 255, .7); }
.url-pill { padding: 8px 14px; border-radius: 999px; font: 400 12px var(--mono); background: rgba(10, 10, 14, .35); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-orb { width: min(36vh, 330px, 70vw); transition: transform 1s var(--ease); }
.preview-orb .orb-body { gap: 6px; }
.preview-orb b { font: 400 clamp(22px, 2.2vw, 30px)/1.05 var(--sans); letter-spacing: -.035em; overflow-wrap: anywhere; }
.preview-orb small { font-size: 12.5px; opacity: .8; }
.preview-orb.done { transform: scale(1.06); }
.preview-pass { position: relative; width: min(380px, 86%); aspect-ratio: 1.58; }
.preview-pass .pass { cursor: default; }
.preview-note { font-size: 12.5px; color: rgba(255, 255, 255, .7); }

@media (max-width: 900px) {
  .start { grid-template-columns: 1fr; }
  .preview { position: relative; top: 0; height: auto; min-height: 0; padding: 72px 20px 28px; order: 2; }
  .start-form { padding-top: 32px; }
}
@media (max-width: 520px) {
  .start-nav { gap: 12px; }
  .progress { max-width: 90px; }
  .field-row { grid-template-columns: 1fr; }
  .plan-pick { grid-template-columns: 1fr; }
  .plan-pick span { flex-direction: row; justify-content: space-between; align-items: center; border-radius: 999px; }
  .preview-pass .pass-body { gap: 12px; padding: 0 14px 14px; }
  .preview-pass .pass-code { width: 40px; }
}
