/* The post-download toast, shared by every page that has a Download button.

   It used to live inline in landing/index.html, which meant it fired on
   exactly one page. The site has 114 download links across 43 pages, and 111
   of them dropped a .dmg on someone with no word about what to do next. Even
   on home it only covered 3 of the 5, because the binding was on
   [data-download] and two of home's links never carried that attribute.

   Loaded as a pair with download-toast.js, which injects the markup and does
   the binding. Applied to every page by scripts/build-download-toast.py.

   Styles are lifted from home verbatim, so nothing about how it looks
   changed. */

/* ---------- Post-download toast ----------
   Slides up from the bottom-right after the user clicks Download.
   Skinned to match Tellie itself (black + orange) so it reads as
   a continuation of the brand. Tells them what just happened
   (downloading) and what to do next (drop in Applications, allow
   mic on first launch). Auto-dismisses after 9 seconds; click X
   to dismiss sooner. */
.download-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  max-width: 360px;
  padding: 18px 20px 18px 18px;
  background: linear-gradient(180deg, #161616 0%, #0c0c0c 100%);
  color: #f6f3ee;
  border: 1px solid rgba(255, 138, 0, 0.35);
  border-radius: 16px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 32px rgba(255, 138, 0, 0.18);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .55s cubic-bezier(0.34, 1.4, 0.64, 1.0),
              opacity .35s ease;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.download-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.download-toast-row {
  display: flex; align-items: flex-start; gap: 12px;
}
.download-toast-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(46, 204, 122, 0.18);
  color: #2ecc7a;
  display: grid; place-items: center;
  animation: toastCheckPulse 1.6s ease-out infinite;
}
.download-toast-icon svg { width: 16px; height: 16px; }
@keyframes toastCheckPulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 204, 122, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(46, 204, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 122, 0); }
}
.download-toast-body { flex: 1; min-width: 0; }
.download-toast-title {
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: #ffffff;
}
.download-toast-msg {
  font-size: 13.5px;
  color: rgba(246, 243, 238, 0.74);
  line-height: 1.45;
  margin: 0;
}
.download-toast-msg .accent { color: #ffae4d; font-weight: 600; }
.download-toast-steps {
  font-size: 13px;
  color: rgba(246, 243, 238, 0.74);
  line-height: 1.5;
  margin: 2px 0 0;
  padding-left: 18px;
}
.download-toast-steps .accent { color: #ffae4d; font-weight: 600; }
.download-toast-help { font-size: 12.5px; margin: 7px 0 0; }
.download-toast-help a { color: #ffae4d; text-decoration: none; font-weight: 600; }
.download-toast-help a:hover { text-decoration: underline; }

.download-toast-close {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 243, 238, 0.75);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.download-toast-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.download-toast-close svg { width: 12px; height: 12px; }

@media (max-width: 600px) {
  .download-toast {
    left: 16px; right: 16px; bottom: 16px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .download-toast { transition: opacity .2s ease; transform: none; }
  .download-toast-icon { animation: none; }
}
