:root {
  --yoxi-red: #f23b30;
  --yoxi-red-dark: #d92b22;
  --navy: #071a2f;
  --navy-soft: #12304a;
  --sky: #edf4f8;
  --paper: #ffffff;
  --ink: #0a2034;
  --muted: #627588;
  --line: #dce6ed;
  --mint: #dff5e9;
  --green: #117a52;
  --amber: #ffcf65;
  --shadow: 0 22px 60px rgba(7, 26, 47, 0.16);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  color: var(--ink);
  background: #eef2f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(242, 59, 48, 0.12), transparent 32rem),
    linear-gradient(145deg, #f9faf8 0%, #e8eef1 100%);
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid #126ce5;
  outline-offset: 3px;
}

.demo-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
  padding: 48px 0;
}

.story-panel {
  max-width: 620px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-lockup img {
  display: block;
  width: 84px;
  height: auto;
}

.eyebrow,
.micro-label {
  margin: 26px 0 10px;
  color: var(--yoxi-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.story-panel h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.13;
  letter-spacing: -0.07em;
}

.story-panel h1 span {
  color: var(--yoxi-red);
}

.story-copy {
  max-width: 570px;
  margin: 24px 0 32px;
  color: #4d6173;
  font-size: 17px;
  line-height: 1.85;
}

.demo-steps {
  display: grid;
  gap: 8px;
}

.demo-step {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 135px 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.demo-step:hover,
.demo-step.is-active {
  border-color: rgba(7, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(7, 26, 47, 0.07);
}

.demo-step > span {
  color: var(--yoxi-red);
  font-weight: 900;
}

.demo-step strong {
  font-size: 14px;
}

.demo-step small {
  color: var(--muted);
}

.difference-card {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(7, 26, 47, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.difference-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.difference-card div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
}

.difference-card i {
  color: var(--yoxi-red);
  font-style: normal;
}

.difference-card > small {
  display: block;
  margin-top: 10px;
  color: #748493;
  line-height: 1.5;
}

.phone-stage {
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.phone-frame {
  position: relative;
  width: 408px;
  height: 824px;
  padding: 12px;
  border: 2px solid #24313e;
  border-radius: 52px;
  background: linear-gradient(145deg, #26313b, #070b0f 45%, #35414c);
  box-shadow: var(--shadow), inset 0 0 0 2px #56616c;
}

.phone-speaker {
  position: absolute;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: 112px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #0b0f14;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow: clip;
  border-radius: 40px;
  background: var(--sky);
}

.status-bar {
  position: absolute;
  z-index: 15;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #071a2f;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0));
}

.status-icons {
  display: flex;
  gap: 6px;
  font-size: 9px;
}

.map-layer {
  position: absolute;
  inset: 0 0 250px;
  overflow: hidden;
  background: #d9e4e9;
}

.map-layer #map {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.72) contrast(0.92) brightness(1.08);
  pointer-events: auto;
}

.map-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(235, 244, 248, 0.08), rgba(235, 244, 248, 0.38));
  pointer-events: none;
}

.map-layer #map { position: absolute; inset: 0; }
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { display: none; }

.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 3;
  color: #47617b;
  font-size: 8px;
  letter-spacing: .01em;
  text-decoration: none;
  background: rgba(255, 255, 255, .84);
  border-radius: 4px;
  padding: 3px 5px;
}

.top-actions {
  position: absolute;
  z-index: 12;
  top: 49px;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 10px;
}

.icon-button,
.round-button {
  border: 0;
  border-radius: 15px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(7, 26, 47, 0.13);
  cursor: pointer;
}

.menu-button {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 13px;
}

.menu-button span {
  height: 3px;
  border-radius: 4px;
  background: var(--navy);
}

.menu-button span:nth-child(2) { width: 70%; }

.location-pill {
  padding: 8px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(7, 26, 47, 0.13);
}

.location-pill small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.location-pill strong {
  display: block;
  margin-top: 1px;
  font-size: 13px;
}

.location-button {
  display: grid;
  place-items: center;
  align-content: center;
}

.location-button span { font-size: 16px; }
.location-button small { margin-top: -3px; font-size: 8px; font-weight: 800; }

.signal-pill {
  position: absolute;
  z-index: 11;
  top: 112px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 99px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: white;
  background: rgba(7, 26, 47, 0.88);
  box-shadow: 0 8px 20px rgba(7, 26, 47, 0.16);
  font-size: 9px;
  transition: 250ms ease;
}

.signal-pill small {
  padding: 2px 5px;
  border-radius: 99px;
  color: #ffd5d1;
  background: rgba(242, 59, 48, 0.3);
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #53e7a5;
  box-shadow: 0 0 0 4px rgba(83, 231, 165, 0.16);
}

.bottom-sheet {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 67px;
  max-height: calc(100% - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 12px 20px 24px;
  border-radius: 26px 26px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -14px 40px rgba(7, 26, 47, 0.12);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.bottom-sheet::-webkit-scrollbar {
  display: none;
}

.bottom-sheet[aria-hidden="false"],
.discover-sheet {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.app[data-screen="loading"] .discover-sheet,
.app[data-screen="route"] .discover-sheet {
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 4px;
  background: #d8e1e7;
}

.arrival-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 14px;
  background: #edf2f5;
}

.arrival-mode button {
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  color: #6a7b89;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.arrival-mode button.is-active {
  color: var(--navy);
  background: white;
  box-shadow: 0 5px 14px rgba(7, 26, 47, 0.09);
}

.arrival-copy {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 12px;
  align-items: start;
}

.arrival-copy .micro-label,
.route-heading .micro-label {
  margin: 0 0 5px;
}

.arrival-copy h2,
.route-heading h2,
.thinking-state h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.arrival-copy p:not(.micro-label) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

.stage-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 -3px;
}

.stage-progress span {
  width: 27px;
  height: 4px;
  border-radius: 99px;
  background: #dbe4e9;
  transition: background 260ms ease, transform 260ms ease;
}

.stage-progress span.is-active {
  background: var(--yoxi-red);
  transform: scaleX(1.08);
}

.stage-progress strong {
  margin-left: auto;
  color: #798a97;
  font-size: 9px;
  font-weight: 800;
}

.agent-orb {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 20px rgba(242, 59, 48, 0.2);
  animation: orb-float 3s ease-in-out infinite;
}

.agent-orb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes orb-float {
  50% { transform: translateY(-4px) rotate(3deg); }
}

.wheel-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 8px auto 4px;
}

.preference-wheel {
  position: absolute;
  inset: 0;
  border: 1px solid #dfe8ed;
  border-radius: 50%;
  background:
    radial-gradient(circle, white 0 39%, transparent 40%),
    conic-gradient(from -30deg, #fff1ef, #f6fafb, #eef6f4, #fff8e8, #f7f0ff, #eaf3ff, #fff1ef);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.62), 0 16px 40px rgba(7, 26, 47, 0.1);
  transform: rotate(var(--wheel-rotation, 0deg));
  transition: transform 620ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.wheel-wrap::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(7, 26, 47, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.wheel-pointer {
  position: absolute;
  z-index: 7;
  top: -5px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 15px solid var(--yoxi-red);
  transform: translateX(-50%);
}

.wheel-item {
  --angle: calc(360deg / var(--items) * var(--index));
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 26, 47, 0.08);
  border-radius: 99px;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(-103px)
    rotate(calc(-1 * var(--angle)))
    rotate(calc(-1 * var(--wheel-rotation, 0deg)));
  color: #3c5367;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(7, 26, 47, 0.08);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 620ms cubic-bezier(0.2, 0.85, 0.2, 1), background 180ms, color 180ms;
}

.wheel-item.is-active {
  color: white;
  border-color: var(--yoxi-red);
  background: var(--yoxi-red);
}

.wheel-center {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 114px;
  height: 114px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: var(--navy);
  box-shadow: 0 12px 26px rgba(7, 26, 47, 0.25), inset 0 0 0 6px rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.wheel-center small { color: #a8bbcb; font-size: 9px; }
.wheel-center strong { margin: 1px 0; font-size: 19px; }
.wheel-center span { color: #ff8d85; font-size: 9px; font-weight: 800; }

.selection-recap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 9px;
}

.selection-recap span {
  padding: 5px 8px;
  border-radius: 99px;
  color: #8a4038;
  background: #fff0ee;
  font-size: 8px;
  font-weight: 800;
}

.stage-transition {
  position: absolute;
  z-index: 25;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 26px 26px 0 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  color: var(--navy);
  background: #f23b30;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.stage-transition.is-visible {
  opacity: 1;
  visibility: visible;
}

.transition-ticket {
  position: relative;
  z-index: 1;
  width: min(246px, 76%);
  padding: 21px 22px 19px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 12px 12px 0 rgba(7, 26, 47, 0.16);
  animation: ticket-in 700ms cubic-bezier(.16, .9, .24, 1) both;
}

.transition-stripe {
  position: absolute;
  z-index: 0;
  width: 145%;
  height: 30px;
  background: repeating-linear-gradient(-55deg, #fff 0 8px, transparent 8px 15px);
  opacity: .96;
  animation: stripe-slide 700ms ease-out both;
}

.transition-stripe-top { top: 18%; left: -22%; }
.transition-stripe-bottom { right: -20%; bottom: 18%; animation-delay: 70ms; }

.transition-kicker {
  display: block;
  color: var(--yoxi-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.transition-ticket strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.06em;
}

.transition-line {
  display: block;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #dce4e9 0 6px, transparent 6px 10px);
}

.transition-ticket p {
  margin: 11px 0 0;
  color: #637688;
  font-size: 11px;
  font-weight: 700;
}

@keyframes ticket-in {
  from { opacity: 0; transform: translateY(22px) skewY(3deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}

@keyframes stripe-slide {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: .96; transform: translateX(0); }
}

.time-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: -1px 0 12px;
  padding: 0;
  border: 0;
}

.time-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.time-picker button {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #516679;
  background: white;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.time-picker button.is-active {
  color: var(--yoxi-red);
  border-color: rgba(242, 59, 48, 0.35);
  background: #fff2f0;
}

.primary-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px;
  border: 0;
  border-radius: 15px;
  color: white;
  background: var(--yoxi-red);
  box-shadow: 0 10px 22px rgba(242, 59, 48, 0.25);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: 160ms ease;
}

.primary-button:hover { background: var(--yoxi-red-dark); transform: translateY(-1px); }
.primary-button i { font-size: 17px; font-style: normal; }
.primary-button.compact { width: auto; flex: 1; }

.quiet-button {
  width: 100%;
  margin-top: 7px;
  padding: 5px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  text-decoration: underline;
  cursor: pointer;
}

.thinking-state {
  padding: 31px 10px 38px;
  text-align: center;
}

.agent-constellation {
  position: relative;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,59,48,.14), rgba(242,59,48,0) 66%);
  overflow: hidden;
}

.constellation-core {
  position: relative;
  z-index: 4;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: white;
  box-shadow: 0 0 0 10px rgba(242,59,48,.11), 0 0 28px rgba(242,59,48,.6);
  animation: core-breathe 1.6s ease-in-out infinite;
}

.constellation-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit {
  position: absolute;
  z-index: 2;
  inset: 22px;
  border: 1px solid rgba(7,26,47,.19);
  border-radius: 50%;
  animation: constellation-spin 3.2s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f23b30;
  box-shadow: 0 0 12px rgba(242,59,48,.9);
}

.orbit-two {
  inset: 40px 14px;
  border-color: rgba(26,100,162,.28);
  transform: rotate(67deg);
  animation-duration: 2.4s;
  animation-direction: reverse;
}

.orbit-three {
  inset: 6px 35px;
  border-color: rgba(242,59,48,.2);
  transform: rotate(-40deg);
  animation-duration: 4.1s;
}

.constellation-scan {
  position: absolute;
  z-index: 3;
  top: -26%;
  left: -20%;
  width: 140%;
  height: 24%;
  transform: rotate(-28deg);
  background: linear-gradient(180deg, transparent, rgba(242,59,48,.36), transparent);
  mix-blend-mode: multiply;
  animation: scan-city 1.75s cubic-bezier(.65,0,.35,1) infinite;
}

.data-node {
  position: absolute;
  z-index: 5;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 4px rgba(255,255,255,.8), 0 0 13px rgba(7,26,47,.35);
  animation: node-blink 1.5s ease-in-out infinite alternate;
}

.node-one { top: 30px; left: 39px; }
.node-two { right: 31px; top: 53px; animation-delay: .35s; }
.node-three { bottom: 28px; left: 56px; animation-delay: .7s; }
.node-four { right: 54px; bottom: 33px; animation-delay: 1.05s; }

@keyframes constellation-spin { to { rotate: 360deg; } }
@keyframes core-breathe { 50% { transform: scale(1.12); box-shadow: 0 0 0 16px rgba(242,59,48,.08), 0 0 38px rgba(242,59,48,.72); } }
@keyframes scan-city { 0% { translate: 0 -20px; opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { translate: 0 220px; opacity: 0; } }
@keyframes node-blink { to { transform: scale(1.55); background: var(--yoxi-red); } }

.thinking-orb {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, #ffe7e4 31% 54%, #f23b30 55% 100%);
  box-shadow: 0 18px 44px rgba(242, 59, 48, 0.2);
  animation: think-pulse 2s ease-in-out infinite;
}

.thinking-orb span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  animation: thinking 900ms ease-in-out infinite alternate;
}

.thinking-orb span:nth-child(2) { animation-delay: 180ms; }
.thinking-orb span:nth-child(3) { animation-delay: 360ms; }

@keyframes thinking { to { transform: translateY(-8px); opacity: 0.4; } }
@keyframes think-pulse { 50% { transform: scale(1.05); } }

.thinking-state .micro-label { margin: 0 0 8px; }
.thinking-state h2 { max-width: 290px; margin: 0 auto; }

.thinking-state ul {
  margin: 27px auto 0;
  padding: 0;
  list-style: none;
  max-width: 280px;
  text-align: left;
}

.thinking-state li {
  position: relative;
  margin: 10px 0;
  padding-left: 23px;
  color: #7d8c98;
  font-size: 11px;
}

.thinking-state li::before {
  content: "○";
  position: absolute;
  left: 0;
}

.thinking-state li.is-done { color: var(--green); }
.thinking-state li.is-done::before { content: "✓"; font-weight: 900; }
.thinking-state li.is-running { color: var(--yoxi-red); font-weight: 800; }
.thinking-state li.is-running::before { content: "◌"; animation: loading-spin 900ms linear infinite; }

@keyframes loading-spin { to { rotate: 360deg; } }

.route-sheet {
  padding-left: 18px;
  padding-right: 18px;
}

.route-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.round-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  box-shadow: none;
  background: white;
}

.fit-reasons {
  display: flex;
  gap: 5px;
  margin: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.fit-reasons span {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 99px;
  color: #8b3d35;
  background: #fff0ee;
  font-size: 8px;
  font-weight: 800;
}

.route-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 11px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-summary div {
  padding: 0 9px;
  border-right: 1px solid var(--line);
}

.route-summary div:last-child { border-right: 0; }
.route-summary strong { display: block; font-size: 12px; }
.route-summary small { color: var(--muted); font-size: 8px; }

.route-list {
  margin: 11px 0 12px;
  padding: 0;
  list-style: none;
}

.route-list li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  gap: 9px;
  min-height: 84px;
}

.route-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  bottom: 2px;
  left: 13px;
  width: 2px;
  background: linear-gradient(var(--yoxi-red), #ffd2cf);
}

.route-number {
  z-index: 1;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: var(--yoxi-red);
  box-shadow: 0 3px 10px rgba(242, 59, 48, 0.25);
  font-size: 9px;
  font-weight: 900;
}

.route-list strong { display: block; font-size: 12px; }
.route-list p { margin: 3px 0 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.route-list small { color: #718394; font-size: 7px; }
.route-list small b { color: var(--green); }
.route-list time { color: var(--muted); font-size: 9px; text-align: right; }

.route-actions {
  display: flex;
  gap: 8px;
}

.secondary-button {
  width: 112px;
  padding: 10px;
  border: 1px solid #a5c6e7;
  border-radius: 15px;
  color: #225b8c;
  background: #edf7ff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.privacy-note {
  margin: 11px 0 0;
  color: #718394;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.next-move-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(17, 122, 82, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, #f3fbf7, #ffffff);
}

.next-move-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.next-move-card small { color: var(--green); font-size: 8px; font-weight: 800; }
.next-move-card strong { color: var(--navy); font-size: 10px; }
.next-move-card button {
  width: 100%;
  margin-top: 9px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--navy);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.next-move-card p { margin: 7px 0 0; color: #748493; font-size: 7px; text-align: center; }

.primary-button:disabled {
  opacity: 0.62;
  cursor: default;
}

.time-selection {
  margin-top: 8px;
  padding: 6px 2px 0;
  text-align: center;
}

.time-heading .micro-label { margin: 0 0 5px; }
.time-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.045em;
}
.time-heading p:not(.micro-label) {
  margin: 6px auto 0;
  max-width: 270px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.time-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 12px;
  color: var(--navy);
}
.time-value strong {
  color: var(--yoxi-red);
  font-size: 50px;
  line-height: .9;
  letter-spacing: -0.08em;
}
.time-value span { font-size: 14px; font-weight: 900; }

.time-slider-wrap { padding: 2px 10px 0; }
#time-range {
  --range-progress: 29%;
  width: 100%;
  height: 10px;
  appearance: none;
  border-radius: 99px;
  outline: 0;
  background: linear-gradient(to right, var(--yoxi-red) 0 var(--range-progress), #e8eef2 var(--range-progress) 100%);
  cursor: pointer;
}
#time-range::-webkit-slider-thumb {
  width: 27px;
  height: 27px;
  appearance: none;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--yoxi-red);
  box-shadow: 0 4px 14px rgba(242, 59, 48, .35);
}
#time-range::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--yoxi-red);
  box-shadow: 0 4px 14px rgba(242, 59, 48, .35);
}
.time-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #8a9aa6;
  font-size: 8px;
  font-weight: 800;
}

.time-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 16px 0 14px;
}
.time-presets button {
  min-height: 51px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #5d7182;
  background: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.28;
  cursor: pointer;
  transition: 180ms ease;
}
.time-presets button small { color: #8b9aa6; font-size: 8px; font-weight: 700; }
.time-presets button.is-active {
  border-color: rgba(242, 59, 48, .55);
  color: var(--yoxi-red);
  background: #fff4f2;
  box-shadow: 0 7px 18px rgba(242, 59, 48, .12);
}
.time-presets button.is-active small { color: var(--yoxi-red); }

.time-selection .primary-button { margin-top: 0; }
.time-back {
  margin: 10px auto 0;
  padding: 4px 8px;
  border: 0;
  color: #6c8192;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}


.bottom-nav {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 12px 10px;
  border-top: 1px solid #e7edf1;
  background: rgba(255, 255, 255, 0.98);
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  border: 0;
  color: #81909c;
  background: transparent;
  cursor: pointer;
}

.bottom-nav button span { font-size: 17px; }
.bottom-nav button small { font-size: 8px; font-weight: 700; }
.bottom-nav button.is-active { color: var(--yoxi-red); }

.toast {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 82px;
  width: max-content;
  max-width: min(300px, calc(100% - 32px));
  padding: 10px 14px;
  border-radius: 99px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  color: white;
  background: rgba(7, 26, 47, 0.94);
  box-shadow: 0 10px 24px rgba(7, 26, 47, 0.24);
  font-size: 10px;
  font-weight: 700;
  white-space: normal;
  text-align: center;
  line-height: 1.45;
  transition: 240ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 940px) {
  .demo-shell {
    width: min(100% - 24px, 620px);
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0 56px;
  }

  .story-panel { max-width: none; }
  .story-panel h1 { font-size: clamp(36px, 11vw, 58px); }
  .demo-steps { display: none; }
}

@media (max-width: 470px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  body { background: var(--navy); }
  .demo-shell { width: 100%; height: 100%; display: block; padding: 0; }
  .story-panel { display: none; }
  .phone-stage { display: block; }
  .phone-frame {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    min-height: 700px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .phone-speaker { display: none; }
  .app { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
