/* ============================================================
   home.css — homepage only: slideshow controls, how it works, FAQ
   ============================================================ */

/* Progress bar on the active app */
.switcher-tab { position: relative; overflow: hidden; }
.tab-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0,82,204,.12);
  opacity: 0;
  transform-origin: left;
}
.switcher:not(.is-stopped) .switcher-tab[aria-selected="true"] .tab-progress { opacity: 1; }
.switcher:not(.is-stopped) .switcher-tab[aria-selected="true"] .tab-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--brand);
  transform-origin: left;
  transform: scaleX(0);
  animation: slide-progress var(--slide-ms, 7000ms) linear forwards;
}
.switcher:not(.is-playing) .tab-progress::after { animation-play-state: paused; }
@keyframes slide-progress { to { transform: scaleX(1); } }

/* Slide-in of the next or previous app */
.switcher-panel.is-from-next { animation: slide-from-next .35s cubic-bezier(.2,.7,.2,1); }
.switcher-panel.is-from-prev { animation: slide-from-prev .35s cubic-bezier(.2,.7,.2,1); }
@keyframes slide-from-next { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-from-prev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .switcher-panel.is-from-next, .switcher-panel.is-from-prev { animation: none; }
}
.slide-stage { overflow: hidden; touch-action: pan-y; }


/* How it works */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how .card { padding: 22px; border-radius: 20px; }
.how-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 12px;
}
.how h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 6px; }
.how p { color: var(--ink-3); font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

@media (max-width: 640px) { .switcher-head h2 { font-size: 1.2rem; } }

/* Bigger screenshot: no grey frame around it, slimmer app list */
.switcher[data-slideshow] { padding: clamp(16px, 1.8vw, 22px); }
.switcher[data-slideshow] .switcher-body { grid-template-columns: 224px minmax(0, 1fr); gap: 20px; }
.switcher[data-slideshow] .shot-frame { padding: 0; background: none; border-radius: 16px; }
.switcher[data-slideshow] .shot-frame img { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 10px 28px rgba(16,24,40,.10); }
@media (max-width: 900px) { .switcher[data-slideshow] .switcher-body { grid-template-columns: 1fr; } }

/* Slideshow controls: a small transparent strip on the screenshot */
.shot-wrap { position: relative; }
.slide-ctrl {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(16,24,40,.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: .8;
  transition: opacity .15s, background .15s;
}
.shot-wrap:hover .slide-ctrl, .slide-ctrl:focus-within { opacity: 1; background: rgba(16,24,40,.62); }
.slide-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.slide-btn:hover { background: rgba(255,255,255,.18); }
.slide-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 640px) {
  .slide-ctrl { right: 8px; bottom: 8px; }
  .slide-btn { width: 30px; height: 30px; }
}
