/* Polaroid section ("How It Works · Polaroid loop")
 * Ported from docs/legacy/index-2026-05-23.html inline <style> block.
 * Requires Google Fonts: Nunito (800, 900), Dancing Script (600, 700).
 */

.how-polaroid-bg {
  background: radial-gradient(circle at 30% 30%, #fff8e7 0%, #fafbfa 70%);
}

.how-polaroid {
  background: white;
  padding: 1rem 1rem 1.25rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 12px 28px -8px rgba(17, 24, 39, 0.15);
  border-radius: 4px;
  transition: transform 0.25s ease;
  position: relative;
}
.how-polaroid:nth-child(1) { transform: rotate(-2deg); }
.how-polaroid:nth-child(2) { transform: rotate(1.5deg); }
.how-polaroid:nth-child(3) { transform: rotate(-1deg); }
.how-polaroid:nth-child(4) { transform: rotate(2deg); }
.how-polaroid:nth-child(5) { transform: rotate(-1.5deg); }
.how-polaroid:nth-child(6) { transform: rotate(1deg); }
.how-polaroid:hover { transform: rotate(0deg) translateY(-4px); z-index: 5; }

.how-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px;
  height: 22px;
  background: rgba(207, 245, 218, 0.7);
  border: 1px dashed rgba(52, 199, 89, 0.4);
  border-radius: 2px;
}

.how-pol-cal {
  background: linear-gradient(135deg, #cff5da 0%, #e8f7ec 100%);
  border-radius: 4px;
  padding: 1rem 0.75rem;
  text-align: center;
}
.how-pol-day-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #157a36;
  text-transform: uppercase;
}
.how-pol-day-num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 40px;
  color: #24a94b;
  line-height: 1;
  margin-top: 4px;
}
.how-pol-caption {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 22px;
  color: #157a36;
  text-align: center;
  margin-top: 0.5rem;
}

.how-outcome-band {
  background: white;
  border: 2px dashed #34c759;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem;
  position: relative;
}
@media (min-width: 640px) {
  .how-outcome-band { padding: 1.5rem 1.75rem; }
}

.how-outcome-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: #ffe680;
  padding: 4px 16px;
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 18px;
  color: #92400e;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
@media (min-width: 640px) {
  .how-outcome-tape {
    left: auto;
    right: 24px;
    transform: rotate(8deg);
  }
}
