/* Remote-control downloads page. Shared tokens and components live in landing.css. */

.lp section[id] { scroll-margin-top: 80px; }

/* Hero: the connection code ticket. It shows the connected state; the motion starts it at "waiting". */

.lp .w-ticket-wrap { margin-top: 12px; }

.lp .w-ticket {
  position: relative;
  padding: 26px 26px calc(24px + var(--zz));
  text-align: center;
}

.lp .w-ticket-label { font-size: 0.85rem; font-weight: 700; color: var(--mute); }

.lp .w-ticket-code {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.lp .w-ticket-hint {
  margin-top: 10px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--rule);
  font-size: 0.9rem;
  color: var(--mute);
}

.lp .w-ticket-status { margin-top: 16px; }
.lp .w-ticket-status .w-states { justify-items: center; }

.lp .w-ticket-status .w-states > span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.lp .w-ticket-status .is-wait { background: var(--blush); color: var(--mute); }
.lp .w-ticket-status .is-on { background: #edf5e2; color: #2f5410; }
.lp .w-ticket-status i { margin-inline-end: 4px; }

/* Someone else's pointer on the screen; only the motion shows it */
.lp .w-ticket-cursor {
  position: absolute;
  top: 46%;
  left: 18%;
  font-size: 1.4rem;
  color: var(--magenta);
  opacity: 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

/* Downloads: one sheet, a row per program */

.lp .w-apps { padding: 8px 34px calc(14px + var(--zz)); }

.lp .w-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 40px;
  padding: 26px 0;
  border-bottom: 2px dashed var(--rule);
}

.lp .w-app:last-child { border-bottom: 0; }

.lp .w-app h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
}

.lp .w-app-tag {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blush);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
  color: var(--magenta);
}

.lp .w-app-about > p { max-width: 40em; margin-top: 8px; color: var(--mute); }

.lp .w-app-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 12px;
}

.lp .w-app-points li { font-size: 0.85rem; font-weight: 600; }

.lp .w-app-points li::before {
  content: '\f00c';
  margin-inline-end: 6px;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--magenta);
}

.lp .w-app-get { display: flex; flex-direction: column; gap: 8px; }

.lp .w-get {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.lp .w-get:hover { background: var(--ink); color: #fff; }
.lp .w-get i { width: 18px; font-size: 1.05rem; text-align: center; }

/* Which one to pick: a table, with scores as five dots */

.lp .w-rate { width: 100%; max-width: 940px; margin: 0 auto; border-collapse: collapse; }

.lp .w-rate th,
.lp .w-rate td {
  padding: 16px 12px;
  border-bottom: 1px dashed var(--rule);
  text-align: right;
  vertical-align: middle;
}

.lp .w-rate thead th {
  padding-top: 0;
  border-bottom: 2px solid var(--ink);
  font-size: 0.85rem;
  color: var(--mute);
}

.lp .w-rate tbody th { font-size: 1.05rem; }

.lp .w-dots {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--line) 5px, transparent 5.5px) 0 0 / 18px 12px repeat-x;
  vertical-align: middle;
}

.lp .w-dots::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: calc(var(--n) * 18px);
  height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--magenta) 5px, transparent 5.5px) 0 0 / 18px 12px repeat-x;
}

/* Staying safe */
.lp .w-warn {
  padding: 14px 18px;
  border-radius: 12px;
  background: #fde8e8;
  font-weight: 600;
  color: #8f1d22;
}

.lp .w-split-text .w-warn { color: #8f1d22; }
.lp .w-warn i { margin-inline-end: 6px; }

@media (max-width: 760px) {
  .lp .w-apps { padding: 4px 20px calc(12px + var(--zz)); }
  .lp .w-app { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lp .w-app-get { flex-direction: row; flex-wrap: wrap; }
  .lp .w-get { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 560px) {
  .lp .w-ticket-code { gap: 10px; font-size: 3.4rem; }

  .lp .w-rate thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lp .w-rate tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 16px 0; border-bottom: 1px dashed var(--rule); }
  .lp .w-rate th,
  .lp .w-rate td { padding: 0; border: 0; }
  .lp .w-rate tbody th,
  .lp .w-rate td:last-child { grid-column: 1 / -1; }
  .lp .w-rate td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 0.78rem; font-weight: 700; color: var(--mute); }
}
