/* reconet.cc - the loader download page. Page-specific, so the motion lives
   here and nowhere else on the site. Everything animated is switched off for
   people who ask their system for reduced motion. */

main.dl { position: relative; overflow: hidden; flex: 1 0 auto; }
.dl-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.dl-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.dl-orb.a { width: 520px; height: 520px; left: -140px; top: -120px; background: rgba(74, 144, 226, .35); animation: dl-drift 18s ease-in-out infinite alternate; }
.dl-orb.b { width: 420px; height: 420px; right: -120px; top: 180px; background: rgba(90, 120, 255, .22); animation: dl-drift 22s ease-in-out infinite alternate-reverse; }
.dl-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 25%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 30% 25%, #000, transparent 75%);
}
@keyframes dl-drift { to { transform: translate(60px, 40px) scale(1.12); } }

.dl-wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 80px; }

/* hero */
.dl-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; color: var(--muted); animation: dl-rise .7s .05s both; }
.dl-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: dl-pulse 2.2s infinite; }
@keyframes dl-pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

.dl-title { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(54px, 10vw, 112px); line-height: .98; letter-spacing: -.03em; color: var(--text); }
.dl-title .ch { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(4deg); animation: dl-letter .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.12s + var(--i) * 55ms); }
.dl-title .ch.sp { width: .28em; }
@keyframes dl-letter { to { opacity: 1; transform: none; } }
@keyframes dl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dl-sub { margin: 0 0 36px; max-width: 46ch; font-size: 19px; line-height: 1.5; color: var(--muted); animation: dl-rise .8s .75s both; }
.dl-sub b { color: var(--text); font-weight: 600; }

/* the button */
.dl-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; animation: dl-rise .8s .95s both; }
.dl-btn {
  --mx: 50%; --my: 50%;
  position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 20px 34px; border-radius: 16px; overflow: hidden;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; text-decoration: none; isolation: isolate;
  background: linear-gradient(135deg, #2f6fcf, #4a90e2 55%, #6aa9f0);
  box-shadow: 0 14px 34px -10px rgba(74, 144, 226, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.dl-btn::before { /* cursor spotlight */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(180px circle at var(--mx) var(--my), rgba(255, 255, 255, .35), transparent 60%);
}
.dl-btn::after { /* idle sheen sweep */
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent); animation: dl-sheen 4.2s 1.8s infinite;
}
@keyframes dl-sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.dl-btn:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -12px rgba(74, 144, 226, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.dl-btn:hover::before { opacity: 1; }
.dl-btn:active { transform: translateY(0) scale(.98); }
.dl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.dl-btn svg { width: 22px; height: 22px; flex: 0 0 auto; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.dl-btn:hover svg { transform: translateY(3px); }
.dl-btn .lbl-go { display: none; }
.dl-btn.is-go .lbl-idle { display: none; }
.dl-btn.is-go .lbl-go { display: inline; }
.dl-btn.is-go svg { animation: dl-bob .7s ease-in-out infinite; }
@keyframes dl-bob { 50% { transform: translateY(5px); } }
.dl-note { font-size: 14px; color: var(--muted); }
.dl-off { padding: 18px 28px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 14px; color: var(--muted); }

/* facts */
.dl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 64px; }
.dl-fact {
  position: relative; padding: 22px 24px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, .02);
  backdrop-filter: blur(6px); opacity: 0; transform: translateY(22px); animation: dl-rise .8s forwards; animation-delay: calc(1.15s + var(--i) * 120ms);
  transition: border-color .25s, transform .25s, background .25s;
}
.dl-fact:hover { border-color: rgba(74, 144, 226, .55); background: rgba(74, 144, 226, .06); transform: translateY(-4px); }
.dl-fact span { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.dl-fact b { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--text); }

/* changelog */
.dl-notes { margin-top: 56px; max-width: 760px; }
.dl-notes h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 24px; }
.dl-log { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--border); }
.dl-log li {
  position: relative; padding: 6px 0 12px; font-size: 15.5px; line-height: 1.55; color: var(--text-dim, var(--muted));
  opacity: 0; transform: translateX(-12px); animation: dl-slide .6s forwards; animation-delay: calc(1.6s + var(--i) * 90ms);
}
.dl-log li::before { content: ''; position: absolute; left: -27px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(74, 144, 226, .8); }
@keyframes dl-slide { to { opacity: 1; transform: none; } }

/* signed-out / no-access states */
.dl-state { max-width: 560px; }
.dl-state .dl-title { font-size: clamp(40px, 7vw, 76px); }

@media (max-width: 720px) {
  .dl-wrap { padding-top: 44px; }
  .dl-facts { grid-template-columns: 1fr; margin-top: 44px; }
  .dl-btn { width: 100%; justify-content: center; }
  .dl-orb { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-orb, .dl-kicker::before, .dl-btn::after, .dl-btn.is-go svg { animation: none; }
  .dl-title .ch, .dl-kicker, .dl-sub, .dl-actions, .dl-fact, .dl-log li { animation: none; opacity: 1; transform: none; }
  .dl-btn, .dl-btn svg, .dl-fact { transition: none; }
}

/* ---- v2: plan / channel / pc / file tiles, steps, recent ---- */
.dl-facts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dl-fact em { display: block; margin-top: 6px; font-style: normal; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.dl-fact em.dim { margin-top: 4px; font-size: 12.5px; opacity: .8; }
.dl-fact em.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.dl-fact.warn { border-color: rgba(240, 180, 60, .5); }
.dl-fact.warn b { color: #f2d28a; }
.dl-bar { display: block; height: 5px; margin-top: 14px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dl-bar > i { display: block; height: 100%; width: calc(var(--pct, 0) * 1%); border-radius: 3px; background: linear-gradient(90deg, #2f6fcf, #6aa9f0); transform-origin: left; animation: dl-grow 1.2s 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.dl-fact.warn .dl-bar > i { background: linear-gradient(90deg, #c98a1a, #f2d28a); }
@keyframes dl-grow { from { transform: scaleX(0); } }
.dl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dl-chips u { text-decoration: none; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--border); color: var(--muted); }
.dl-chips u.on { color: #fff; border-color: transparent; background: rgba(74, 144, 226, .55); }
.dl-link { display: inline-block; margin-top: 10px; padding: 0; background: none; border: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: none; }
.dl-link:hover { color: #8fc0f5; }
.dl-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.dl-pill { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; border: 1px solid var(--border); color: var(--muted); }
.dl-pill.ok { color: #7fe3b5; border-color: rgba(61, 220, 151, .35); }
.dl-pill.new { color: #f2d28a; border-color: rgba(240, 180, 60, .45); background: rgba(240, 180, 60, .08); }

.dl-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; margin-top: 56px; }
.dl-cols .dl-notes { margin-top: 0; max-width: none; }
.dl-steps h2, .dl-recent h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 24px; }
.dl-steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.dl-steps li {
  counter-increment: s; position: relative; padding: 0 0 22px 52px; opacity: 0; transform: translateX(-12px);
  animation: dl-slide .6s forwards; animation-delay: calc(1.5s + var(--i) * 120ms);
}
.dl-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600;
  border: 1px solid rgba(74, 144, 226, .6); color: var(--text); background: rgba(74, 144, 226, .12);
}
.dl-steps li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 1px; background: var(--border); }
.dl-steps li b { display: block; font-size: 17px; margin-bottom: 3px; }
.dl-steps li span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.dl-recent { margin-top: 56px; max-width: 520px; }
.dl-recent ul { list-style: none; margin: 0; padding: 0; }
.dl-recent li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.dl-recent li span { color: var(--muted); }

@media (max-width: 980px) { .dl-facts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .dl-facts.four { grid-template-columns: 1fr; }
  .dl-cols { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-steps li, .dl-bar > i { animation: none; opacity: 1; transform: none; }
}
