/* ==========================================================================
   how.css — how-it-works accordion and media panel
   Split out of the original components.css; load order is preserved
   exactly, because several rules here depend on source order.
   ========================================================================== */

/* ---- How it works accordion ---- */
.accordion { flex: 1; min-width: 0; }
.acc-item { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.acc-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.acc-head {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 20px 0;
  text-align: left;
}
.acc-num { font-size: 32px; font-weight: var(--w-medium); color: #474747; }
.acc-title { font-size: 28px; color: var(--white); }
.acc-icon { width: 24px; height: 24px; grid-column: 3; }
.acc-icon--minus { display: none; }
.acc-item.is-open .acc-icon--minus { display: block; }
.acc-item.is-open .acc-icon--plus { display: none; }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > p {
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  padding: 0 64px;
  font-size: 20px;
  line-height: 28px;
  color: var(--text-muted-3);
}
.acc-item.is-open .acc-panel > p {
  padding-bottom: 20px;
  opacity: 1;
  transform: none;
  transition-delay: 0.18s;
}
/* the open row lifts slightly, so switching items reads as a handoff */
.acc-item { transition: opacity 0.4s var(--ease); }
.acc-item:not(.is-open) .acc-title { opacity: 0.72; transition: opacity 0.4s var(--ease); }

.how-photo {
  width: 392px;
  height: 392px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-050);
}
.how-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* fill, never letterboxed */
  transition: opacity 0.3s var(--ease);
}
.how-photo.is-swapping img { opacity: 0; }
/* Design: Aeonik Medium 40 / 56, uppercase */
.how-rail {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 40px;
  line-height: 56px;
  font-weight: var(--w-medium);
  text-transform: uppercase;
  color: #474747;
  white-space: nowrap;
}

