/* ==========================================================================
   Safa Pile · DS-009 · TheLayoutLoft Parts Line — .sf- prefixed
   ========================================================================== */
.sf {
  position: relative; width: 320px; padding: 18px;
  background: #12161F; border: 1px solid #232A3A; border-radius: 16px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.sf-pile { position: relative; height: 150px; }
.sf-card {
  position: absolute; left: 0; right: 0; top: 0;
  background: #1E2330; border: 1px solid #2A3142; border-radius: 10px;
  padding: 13px 15px; color: #C7CDDC; font-size: 12.5px;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  transform-origin: 50% 120%;
  transition: transform .3s cubic-bezier(.3,1.1,.4,1), opacity .2s;
}
.sf-card b { color: #E8E6F0; }
.sf-card small { display: block; color: #6B7386; margin-top: 3px; }
.sf-count {
  font: 600 10.5px/1 ui-monospace, monospace; color: #6B7386;
  letter-spacing: .1em; text-transform: uppercase; margin: 8px 0 10px;
}
.sf-clear {
  width: 100%; padding: 11px; cursor: pointer;
  font: 600 12.5px/1 inherit; color: #E8E6F0;
  background: linear-gradient(180deg, #4F46E5, #4338CA);
  border: 1px solid #6D64F0; border-radius: 9px;
}
.sf-clear:hover { filter: brightness(1.12); }
.sf-clear:focus-visible { outline: 2px solid #A5B4FC; outline-offset: 2px; }

/* payoff — sits where the pile was */
.sf-payoff {
  display: none; position: relative; text-align: center;
  padding: 34px 10px 30px;
}
.sf-payoff.sf-show { display: block; }
.sf-payoff b {
  display: block; font-size: 21px; font-weight: 800; color: #F5F1E8;
  letter-spacing: -.01em;
}
.sf-payoff small { display: block; margin-top: 6px; color: #34D399;
  font-size: 12.5px; font-weight: 600; }
.sf-ring {
  position: absolute; left: 50%; top: 50%; width: 110px; height: 110px;
  margin: -55px 0 0 -55px; border-radius: 50%;
  border: 2px solid #34D399; opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .sf-card { transition: none; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
