/* Lichi journey — sign-up and first-run pages where Lichi walks with the owner.
 * Builds on lyche-ui.css tokens (light + dark). */

/* ── Lichi companion ── */
.lichi { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 14px; }
.lichi img { width: var(--lichi-size, 168px); height: auto; aspect-ratio: 1; display: block; filter: drop-shadow(0 18px 18px rgba(15,50,78,.22)); }
.lichi.lichi-pop img { animation: lichiPop 520ms var(--ease-spring); }
@keyframes lichiPop { 0% { transform: translateY(6px) scale(.96); } 60% { transform: translateY(-4px) scale(1.02); } 100% { transform: none; } }
.lichi-say { position: relative; margin: 0 0 calc(var(--lichi-size, 168px) * .42); padding: 14px 16px; border-radius: 18px 18px 18px 6px;
  background: var(--surface); color: var(--ink); font-weight: 600; line-height: 1.4; box-shadow: 0 14px 30px -18px rgba(15,50,78,.55); max-width: 30ch; }
.lichi-say::before { content: ""; position: absolute; left: -7px; bottom: 10px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.lichi-say.lichi-in { animation: sayIn 360ms var(--ease-out); }
@keyframes sayIn { from { opacity: 0; transform: translateY(6px); } }

/* ── Page frame ── */
.lj [hidden] { display: none !important; }
.lj { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--background); }
.lj-stage { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 28px clamp(24px, 4vw, 56px) 32px;
  background: radial-gradient(120% 80% at 20% 0%, rgba(207,172,252,.28), transparent 55%), var(--burgundy); color: #FFF5F8; }
.lj-stage::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 96px; height: 2px; background: linear-gradient(90deg, transparent, var(--lime) 20%, var(--lime) 80%, transparent); opacity: .9; }
.lj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.lj-brand { display: flex; align-items: center; gap: 10px; color: #FFF5F8; text-decoration: none; }
.lj-brand strong { font: 800 1.3rem var(--font-display); letter-spacing: -.02em; }
.lj-logo { height: 40px; width: auto; display: block; }
.lj-lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.14); }
.lj-lang button { border: 0; background: transparent; color: #FFF5F8; height: 30px; min-width: 40px; padding: 0 10px; border-radius: 999px; font: 700 13px var(--font-ui); cursor: pointer; }
.lj-lang button[aria-pressed="true"] { background: #FFF5F8; color: var(--burgundy); }
.lj-pitch { position: relative; z-index: 1; align-self: center; display: grid; gap: 14px; max-width: 34rem; }
.lj-pitch h1 { font: 800 clamp(2.2rem, 4.2vw, 3.6rem)/1.02 var(--font-display); letter-spacing: -.035em; color: var(--lavender); margin: 0; text-wrap: balance; }
.lj-pitch p { margin: 0; color: rgba(255,245,248,.86); font-size: 1.05rem; max-width: 42ch; }
.lj-promises { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lj-promises li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; }
.lj-promises li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.lj-stage .lichi { position: relative; z-index: 1; --lichi-size: clamp(132px, 15vw, 196px); }

.lj-form { display: grid; place-items: center; padding: 40px clamp(16px, 5vw, 64px); }
.lj-card { width: min(470px, 100%); display: grid; gap: 22px; }
.lj-head h2 { margin: 0; font: 800 clamp(1.8rem, 3vw, 2.3rem)/1.05 var(--font-display); letter-spacing: -.03em; }
.lj-head p { margin: 8px 0 0; color: var(--ink-soft); }
.lj-step { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lj-step-title { display: flex; align-items: center; gap: 10px; font: 700 15px var(--font-ui); margin: 0; }
.lj-step-title b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--burgundy); color: #fff; font-size: 13px; }
.lj-field { display: grid; gap: 6px; min-width: 0; }
.lj-field label { font-weight: 650; font-size: 14px; }
.lj-field .hint { font-size: 12.5px; color: var(--ink-faint); }
.lj-field .err { font-size: 12.5px; color: var(--bad); font-weight: 600; min-height: 0; }
.lj-field .err:empty { display: none; }
.lj-input, .lj-select { width: 100%; min-width: 0; height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--background); color: var(--ink); font: 500 16px var(--font-ui); transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.lj-input:focus, .lj-select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(102,59,232,.18); }
.lj-field.invalid .lj-input { border-color: var(--bad); }
.lj-phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.lj-pass { position: relative; }
.lj-pass .lj-input { padding-right: 168px; }
.lj-eye { position: absolute; right: 6px; top: 6px; height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--lavender-soft); color: var(--brand-ink); font: 700 13px var(--font-ui); cursor: pointer; }
.lj-eye svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lj-rules { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lj-rules li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-sunk); color: var(--ink-faint); font-size: 12.5px; font-weight: 650; }
.lj-rules li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.lj-rules li.ok { background: var(--good-bg); color: var(--good); }
.lj-rules li.ok::before { background: currentColor; }
.lj-social { display: grid; gap: 10px; }
.lj-social-btn { height: 50px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; font: 700 15px var(--font-ui); cursor: pointer; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.lj-social-btn.facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.lj-social-btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.lj-social-btn[disabled] { opacity: .6; cursor: progress; }
.lj-google { min-height: 44px; display: grid; justify-items: center; }
.lj-or { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 13px; font-weight: 600; }
.lj-or::before, .lj-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.lj-picked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--good-bg); color: var(--good); font-weight: 650; font-size: 14px; }
.lj-picked button { margin-left: auto; border: 0; background: transparent; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.lj-submit { height: 54px; border: 0; border-radius: 16px; background: var(--burgundy); color: #fff; font: 800 16px var(--font-ui); cursor: pointer; transition: transform var(--dur-1) var(--ease-out), background var(--dur-1); }
.lj-submit:hover { background: var(--burgundy-ink); }
.lj-submit:active { transform: scale(.98); }
.lj-submit[disabled] { opacity: .7; cursor: progress; }
.lj-legal, .lj-alt { margin: 0; text-align: center; font-size: 13px; color: var(--ink-soft); }
.lj-alert { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bad-bg); color: var(--bad); font-weight: 650; font-size: 14px; }
.lj-alert:empty { display: none; }
.lj-demo { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; font-weight: 700; }

@media (max-width: 920px) {
  .lj { grid-template-columns: minmax(0, 1fr); }
  .lj-stage { grid-template-rows: auto auto; gap: 14px; padding: 16px 16px 18px; }
  .lj-stage::after { bottom: 18px; }
  .lj-pitch { display: none; }
  .lj-logo { height: 32px; }
  .lj-stage .lichi { --lichi-size: 96px; }
  .lj-stage .lichi-say { margin-bottom: 26px; font-size: 14px; }
  .lj-form { padding: 22px 16px 40px; place-items: start center; }
}
@media (max-width: 380px) { .lj-phone { grid-template-columns: 96px minmax(0, 1fr); } .lj-pass .lj-input { padding-right: 56px; } .lj-eye span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .lichi.lichi-pop img, .lichi-say.lichi-in { animation: none; } }

/* Lime accents (#C6EB36) — always paired with navy ink for contrast */
.lj-stage .lichi-say { background: var(--lime); color: var(--navy); box-shadow: 0 14px 30px -16px rgba(15,50,78,.6); }
.lj-head h2::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 12px; border-radius: 3px; background: var(--lime); }
.lj-rules li.ok { background: var(--lime); color: var(--navy); }
.lj-picked { background: var(--lime); color: var(--navy); }
