/* YunHai landing — Demo 02 rebuilt: Scheduling Preference → itinerary fill.
 * Scene 1: the real pace dot-scale modal. Scene 2: activities drop into a day
 * timeline with real drive-time pills between them. Light product window on dark.
 */

.demo--seq { position: relative; }
.sq2 { position: relative; height: 566px; overflow: hidden; }
.sq2__scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 460ms var(--ease-out);
}
.sq2__scene.is-active { opacity: 1; visibility: visible; }

/* ============ SCENE 1 · SCHEDULING PREFERENCE ============ */
.sqp {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 40px;
  gap: 4px;
}
.sqp__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.sqp__title {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-900);
  margin: 0 0 10px;
}
.sqp__title .serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.sqp__sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-500);
  max-width: 46ch;
  margin: 0 0 30px;
}

/* dot scale — faithful to .wiz-scale */
.sqp__scale { position: relative; height: 24px; margin: 0 6px; }
.sqp__scale::before {
  content: '';
  position: absolute;
  top: 50%; left: 12px; right: 12px;
  height: 1px;
  background: var(--hair-strong);
  transform: translateY(-50%);
}
.sqp__fill {
  position: absolute;
  top: 50%; left: 12px;
  height: 2px;
  width: 0;
  background: var(--ink-900);
  border-radius: 999px;
  transform: translateY(-50%);
  transition: width 380ms var(--ease-out);
  z-index: 1;
}
.sqp__dots {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  z-index: 2;
}
.sqd {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper-1);
  border: 1.5px solid var(--hair-strong);
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
}
.sqd.done { background: var(--ink-900); border-color: var(--ink-900); }
.sqd.now {
  width: 22px; height: 22px;
  background: var(--paper-1);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(47,125,251,.16), 0 2px 6px rgba(47,125,251,.18);
}
.sqd.now::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.sqp__ends {
  display: flex;
  justify-content: space-between;
  margin: 10px 6px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-500);
}
.sqp__choice {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sqp__choice .now-label {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-900);
  font-family: var(--font-display);
  font-style: italic;
}
.sqp__choice .now-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(47,125,251,.2);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--dur-med);
}
.sqp__choice .now-meta.in { opacity: 1; }

/* ============ SCENE 2 · ITINERARY FILL ============ */
.sqf { height: 100%; display: flex; flex-direction: column; }
.sqf__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  flex: none;
}
.sqf__day { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-500); }
.sqf__day b { color: var(--text-900); font-weight: 600; }
.sqf__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-700);
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  font-variant-numeric: tabular-nums;
}

.sqf__track {
  flex: 1;
  overflow: hidden;
  padding: 12px 16px 6px;
  position: relative;
}

.sqf__rows { display: flex; flex-direction: column; gap: 2px; }

/* anchor row (arrive / hotel) */
.sqanchor {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px dashed var(--hair-strong);
  border-radius: var(--r-md);
  background: var(--paper-1);
  color: var(--text-700);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.sqanchor.in { opacity: 1; transform: none; }
.sqanchor svg { width: 15px; height: 15px; flex: none; color: var(--text-500); }
.sqanchor .a-title { font-size: 12.5px; font-weight: 500; color: var(--text-900); flex: 1; }
.sqanchor .a-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-700); font-variant-numeric: tabular-nums; }

/* time gutter */
.sqtime {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-400);
  text-align: right;
  padding-top: 4px;
  white-space: nowrap;
}

/* activity card — matches .evt color-strip scheme */
.sqcard {
  position: relative;
  background: var(--paper-0);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 10px 13px 11px 15px;
  box-shadow: var(--sh-sm);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.sqcard.in { opacity: 1; transform: none; }
.sqcard::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--strip, var(--accent));
}
.sqcard__time { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-500); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.sqcard__time svg { width: 12px; height: 12px; color: var(--text-400); }
.sqcard__main { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.sqcard__ico { width: 17px; height: 17px; flex: none; color: var(--text-700); }
.sqcard__ico svg { width: 100%; height: 100%; }
.sqcard__title { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: var(--text-900); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* transit pill between rows */
.sqtransit {
  grid-column: 2;
  display: flex;
  justify-content: center;
  padding: 4px 0;
  opacity: 0;
  transform: scale(.85);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.sqtransit.in { opacity: 1; transform: none; }
.sqtransit span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-700);
  background: var(--paper-1);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}
.sqtransit span svg { width: 13px; height: 13px; color: var(--text-500); }

.sqf__rows { display: flex; flex-direction: column; gap: 0; }
.sqf__rows .sqrow + .sqrow { margin-top: 0; }

/* footer readout — honest, data-grounded */
.sqf__foot {
  flex: none;
  border-top: 1px solid var(--hair);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--paper-0);
}
.sqf__foot .note {
  font-size: 12px;
  color: var(--text-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sqf__foot .note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.sqf__foot .note b { color: var(--text-900); font-weight: 600; }
.sqf__foot .total {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-700);
  font-variant-numeric: tabular-nums;
}
.sqf__foot .total b { color: var(--accent-deep); }

@media (max-width: 560px) {
  .sq2 { height: auto; }
  .sq2__scene { position: relative; }
  .sq2__scene:not(.is-active) { display: none; }
  .sqp { padding: 28px 22px; }
}
