/* Who's In Your Lift? | app styles on top of /shared/css/aps.css */

/* ---------- Hero ---------- */
.lift-hero { padding-bottom: clamp(8px, 2vw, 24px); }
.lift-hero__title { max-width: 19ch; font-size: clamp(1.85rem, 1.2rem + 2.8vw, 3.2rem); }
.lift-hero__accent { display: block; color: var(--aps-green-light); }
.lift-hero .lead { margin-bottom: var(--space-5); }

/* ---------- Builder layout ---------- */
.lift-builder { padding-top: clamp(16px, 3vw, 32px); scroll-margin-top: 72px; }
.lift-layout { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
.lift-preview { order: -1; text-align: center; }
.lift-preview .lift-art { width: min(100%, 220px); margin: 0 auto; }
.lift-preview__label { font-weight: 700; font-size: 0.85rem; color: var(--gold-text); letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 var(--space-2); }
.lift-preview__count { margin: var(--space-2) 0 0; }
@media (min-width: 960px) {
  .lift-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-6); align-items: start; }
  .lift-preview { order: 0; position: sticky; top: 100px; }
  .lift-preview .lift-art { width: 100%; }
}

.lift-art { aspect-ratio: 640 / 600; }
.lift-art svg { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow); }

.lift-form { padding: clamp(18px, 3.4vw, 36px); scroll-margin-top: 84px; }
.lift-form .steps li { min-width: 0; }
.lift-form .steps li span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) {
  .lift-form .steps li:not([aria-current="step"]) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lift-form .steps li:not([aria-current="step"]) { flex: 0 0 auto; }
  .lift-form .steps li[aria-current="step"] { flex: 1 1 auto; }
}
.lift-stepof { margin: 0 0 4px; color: var(--ink-3); font-weight: 600; }
.lift-step-title { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-bottom: 6px; }
.lift-step-title:focus { outline: none; box-shadow: none; }
.lift-step-hint { margin-bottom: var(--space-5); }

/* ---------- People ---------- */
.lift-person {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: var(--space-4); margin: 0 0 var(--space-4); min-width: 0;
}
.lift-person__legend { font-weight: 700; color: var(--aps-green-dark); padding: 2px 10px; margin-left: -4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }
.lift-person__grid { display: grid; gap: 0 var(--space-4); grid-template-columns: minmax(0, 1fr); margin-top: var(--space-2); }
.lift-person__grid .field { margin-bottom: var(--space-3); }
@media (min-width: 600px) {
  .lift-person__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lift-person__wide { grid-column: 1 / -1; }
}
.lift-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.lift-field-head .char-count { align-self: auto; }
.lift-person__foot { display: flex; justify-content: flex-end; margin: -6px -8px -8px 0; }
.lift-remove { min-height: 44px; min-width: 44px; padding: 8px 12px; gap: 6px; }
.lift-remove__x { font-size: 1.3rem; line-height: 1; }
@media (max-width: 380px) { .lift-remove__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.lift-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-2) 0 var(--space-4); }
.lift-add__plus { font-size: 1.3rem; line-height: 1; }
.lift-count { margin: 0; }
.lift-oversix { margin-bottom: var(--space-4); }

/* ---------- Items ---------- */
.lift-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.lift-chip { position: relative; padding: 6px 14px 6px 8px; gap: 6px; font-size: 0.92rem; }
.lift-chip__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); flex: none; }
.lift-chip__icon svg { width: 26px; height: 26px; }
.lift-chip:has(input:checked) .lift-chip__icon { background: var(--white); }
.lift-items > .field__error { margin-top: var(--space-2); }
.lift-items[aria-invalid="true"] { border-color: var(--danger); }
.lift-custom { margin-top: var(--space-3); }
.lift-custom .field { margin-bottom: 0; }

/* ---------- Vibe ---------- */
.lift-segmented { display: flex; flex-wrap: wrap; width: 100%; border-radius: 26px; }
.lift-segmented button { flex: 1 1 auto; }
@media (max-width: 559px) { .lift-segmented--stack { flex-direction: column; border-radius: 24px; } }
.lift-vibe-desc { margin: 6px 0 0; min-height: 1.55em; }
.lift-summary { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3) var(--space-4); background: var(--paper-2); border-radius: var(--radius); margin-bottom: var(--space-2); }
.lift-summary__faces { display: flex; }
.lift-summary__faces svg { width: 34px; height: 34px; background: var(--white); border: 1.5px solid var(--line); border-radius: 50%; padding: 3px; margin-right: -6px; }
.lift-summary p { margin: 0; }

.lift-error { margin-top: var(--space-4); }
.lift-nav { margin-top: var(--space-5); justify-content: space-between; }
.lift-nav .btn:last-child { margin-left: auto; }
.lift-privacy { margin: var(--space-4) 0 0; }

/* ---------- Loading: the lights flicker and stop ---------- */
.lift-loading { min-height: 70vh; }
.lift-art--loading { width: min(100%, 440px); margin: 0 auto; }
.lift-art--loading svg { animation: lift-jolt .9s var(--ease) .2s both; }
.lift-art--loading .lift-dark { opacity: 0; animation: lift-lights 2.6s steps(1, end) .6s forwards; }
.lift-art--loading .lift-eyes { opacity: 0; animation: lift-eyes .6s ease 3.1s forwards, lift-blink 3.8s ease 3.8s infinite; }
.lift-loading__status { margin: var(--space-5) auto 0; font-weight: 700; color: var(--aps-green-dark); font-size: 1.1rem; min-height: 1.6em; }
@keyframes lift-jolt {
  0% { transform: translateY(0); }
  30% { transform: translateY(5px); }
  45% { transform: translateY(-3px); }
  60% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}
@keyframes lift-lights {
  0% { opacity: 0; } 8% { opacity: .72; } 12% { opacity: 0; } 24% { opacity: .78; } 28% { opacity: .12; }
  40% { opacity: .84; } 44% { opacity: .3; } 56% { opacity: .86; } 100% { opacity: .9; }
}
@keyframes lift-eyes { to { opacity: 1; } }
@keyframes lift-blink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: .1; } }

/* ---------- Result ---------- */
.lift-result { padding-top: clamp(20px, 4vw, 48px); }
.lift-story { padding: clamp(14px, 3vw, 28px); }
.lift-art--result svg { box-shadow: none; }
.lift-story__body { padding: var(--space-5) clamp(4px, 2vw, 16px) var(--space-2); }
.lift-story__body h2 { margin-bottom: var(--space-4); }
.lift-story__body h2:focus { outline: none; box-shadow: none; }
.lift-story__text p { font-size: 1.08rem; line-height: 1.7; color: var(--ink); }
.lift-story__endline { font-weight: 700; color: var(--aps-green); font-size: 1.1rem; margin-bottom: var(--space-6); }
.lift-moments__heading { font-size: 1.05rem; margin-bottom: var(--space-3); }
.lift-moments { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.lift-moment { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; line-height: 1.4; }
.lift-moment__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.lift-moment__text strong { color: var(--aps-green-dark); }
.lift-demo-note { margin: var(--space-4) 0 0; }
.lift-actions { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.lift-actions .btn-row:last-child { justify-content: center; }
@media (max-width: 599px) {
  .lift-actions .btn-row:first-child .btn { flex: 1 1 100%; }
  .lift-actions .btn-row:last-child .btn { flex: 1 1 0; }
}
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
