/* Lightweight orientation tools for the homepage. */
.page-route {
  --route-progress: 0%;
  position: fixed;
  z-index: 24;
  top: 40%;
  right: clamp(16px, 2.8vw, 52px);
  width: 176px;
  transform: translateY(-50%);
  pointer-events: none;
}

.page-route-list {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-route-list::before,
.page-route-list::after {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 8px;
  width: 1px;
  content: "";
  pointer-events: none;
}

.page-route-list::before { background: var(--line); }
.page-route-list::after { height: var(--route-progress); bottom: auto; background: var(--lime); }

.page-route-item { position: relative; pointer-events: auto; }

.page-route-item > a {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 48px;
  padding: 5px 0;
  color: var(--muted);
  text-decoration: none;
  pointer-events: auto;
}

.page-route-number {
  display: grid;
  position: relative;
  z-index: 1;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.page-route-copy { display: grid; gap: 2px; min-width: 0; }
.page-route-label { color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 1.25px; line-height: 1.4; }
.page-route-status { color: var(--muted); font-size: 9px; line-height: 1.4; }

.page-route-item > a:hover .page-route-label,
.page-route-item > a:focus-visible .page-route-label,
.page-route-item > a[aria-current="step"] .page-route-label { color: var(--lime); }

.page-route-item > a:hover .page-route-number,
.page-route-item > a:focus-visible .page-route-number,
.page-route-item > a[aria-current="step"] .page-route-number {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--on-lime);
}

.quick-dock {
  display: none;
  position: fixed;
  z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 32px), 520px);
  max-width: 520px;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111f;
  box-shadow: 0 12px 35px #000b;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.quick-dock:not([hidden]) { display: none; }
.quick-dock-context { display: grid; min-width: 0; gap: 2px; padding-inline: 7px; }
.quick-dock-kicker { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 1.3px; line-height: 1.3; }
.quick-dock-context > span:last-child { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .8px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.quick-dock-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 13px; border-radius: 10px; background: var(--lime); color: var(--on-lime); font-size: 11px; font-weight: 800; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.quick-dock-action:focus-visible, .quick-dock-dismiss:focus-visible { outline-offset: 3px; }
.quick-dock-dismiss { display: grid; place-items: center; width: 36px; height: 36px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); }
.quick-dock-dismiss:hover { border-color: var(--ink); color: var(--ink); }
.quick-dock-dismiss .icon { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .page-route { display: none; }
  .quick-dock:not([hidden]) { display: grid; }
}

@media (max-width: 720px) {
  .quick-dock { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .page-route-item > a,
  .quick-dock-action,
  .quick-dock-dismiss { scroll-behavior: auto; }
}

/* Guided demos keep navigation predictable and explanations beside controls. */
.page-route { display: none; }
.start-path { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 16px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.start-path h2 { margin: 7px 0; font-size: 27px; letter-spacing: -1px; }
.start-path p { margin: 0; font-size: 12px; color: var(--muted); }
.path-kicker, .demo-step-label { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.start-path > a { display: grid; gap: 10px; padding: 20px; border: 1px solid #303030; border-radius: 16px; background: #101110; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.start-path > a:hover { border-color: var(--lime); background: #18200c; }
.start-path > a strong { font-size: 14px; }
.start-path > a > span:last-child { color: #afb3a8; font-size: 12px; line-height: 1.6; }
.path-number { color: var(--lime); font-size: 12px; font-weight: 800; }
.demo-rule-editor { margin: 24px 0; padding: 22px; border: 1px solid #353b2a; border-radius: 18px; background: #11150d; }
.demo-rule-editor .filter-widget { margin-top: 22px; }
.demo-rule-editor .filter-note { color: #abb2a0; font-size: 12px; line-height: 1.7; }
.demo-rule-editor input[type="range"] { min-height: 34px; }
.demo-rule-editor .filter-label { font-size: 14px; }
.fare-explainer { margin: 24px 0; }
.fare-explainer p { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fare-explainer b { color: var(--ink); }
.fare-explainer span { color: var(--muted); }
.product-preview > .demo-step-label { margin-top: 20px; line-height: 1.7; }
.preview-next { min-height: 44px; background: var(--lime); color: #111; }

@media (max-width: 900px) {
  .start-path { grid-template-columns: repeat(3, 1fr); }
  .start-path > div { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .start-path { grid-template-columns: 1fr; gap: 10px; padding-block: 25px; }
  .start-path > a { grid-template-columns: 28px 1fr; gap: 5px 10px; padding: 15px; }
  .start-path > a > span:last-child { grid-column: 2; }
  .start-path .path-number { grid-row: 1 / 3; }
  .demo-rule-editor { padding: 18px; }
  .app-preview-section { padding-block: 56px; }
  .quick-dock { bottom: max(10px, env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 96px; }
}
.demo-rule-editor .filter-control + .filter-control { margin-top: 22px; }
.demo-rule-editor .filter-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.demo-rule-editor output { color: var(--lime); font-size: 20px; font-weight: 800; }
.demo-rule-editor .filter-control:first-child output { color: #ff7189; }
.demo-rule-editor input[type="range"] { display: block; width: 100%; margin: 0; accent-color: var(--lime); cursor: pointer; }
.demo-rule-editor .filter-control:first-child input { accent-color: #ff7189; }
.demo-rule-editor .filter-scale { display: flex; justify-content: space-between; color: #9ea594; font-size: 11px; }
.demo-rule-editor .filter-example { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 16px; border: 1px solid #39442b; border-radius: 12px; background: #1b2314; }
.demo-rule-editor .filter-example-icon { color: var(--lime); }
.demo-rule-editor .filter-example strong, .demo-rule-editor .filter-example span { display: block; font-size: 13px; line-height: 1.6; }
.demo-rule-editor .filter-example span { margin-top: 4px; color: #bdc4b4; }


