/* ============================================ */
/* Free preview («Бесплатный первый результат») */
/* fp-* — modal from js/freepreview.js, variant A */
/* ============================================ */

.fp-overlay { padding: 12px; }
.fp-modal {
  max-width: 440px;
  margin: 16px auto;
  outline: none;
}
.fp-modal .about-modal-close {
  width: 44px;
  height: 44px;
  top: 8px;
  right: 8px;
}
.fp-content { padding: 24px 20px 20px; }

.fp-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, sans-serif;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fp-wrap button { font-family: 'Inter', sans-serif; }

/* Head */
.fp-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 0 36px; /* clear of the close button */
}
.fp-badge {
  font-size: 12px;
  font-weight: 600;
  color: #fde68a;
  background: #2a2210;
  border: 1px solid #5c4a14;
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.3;
}
.about-modal-content h2.fp-title {
  margin: 4px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}
.fp-cat { font-size: 13px; color: #a1a1b5; }

/* Ring */
.fp-ring {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}
.fp-ring svg { width: 100%; height: 100%; display: block; }
.fp-ring-track { fill: none; stroke: #24243a; stroke-width: 12; }
.fp-ring-arc {
  fill: none;
  stroke: #a855f7;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s cubic-bezier(.2,.8,.2,1);
}
.fp-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fp-ring-pct {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #f1f5f9;
}
.fp-ring-cap { font-size: 11px; color: #a1a1b5; margin-top: 4px; }

/* Strength / risk */
.fp-points { display: flex; flex-direction: column; gap: 10px; }
.fp-point {
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
}
.fp-point-good { background: #13201a; border: 1px solid #1f5137; }
.fp-point-risk { background: #24141a; border: 1px solid #5b2333; }
.fp-point-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.fp-point-good .fp-point-label { color: #6ee7b7; }
.fp-point-risk .fp-point-label { color: #fda4af; }
.fp-point-text {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 4px;
  color: #f1f5f9;
}

/* Locked block */
.fp-locked {
  background: #15151f;
  border: 1px solid #26263a;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.fp-locked-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}
.fp-locked-title svg { color: #fbbf24; flex-shrink: 0; }
.fp-layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.fp-layer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #cbd5e1;
  min-width: 0;
}
/* Neutral placeholder, deliberately not a value */
.fp-layer-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #2e2e46 0 6px, #262639 6px 12px);
}
.fp-locked-more { font-size: 13px; color: #a1a1b5; line-height: 1.45; }

/* Actions */
.fp-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.fp-cta {
  min-height: 54px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1a2e;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fp-cta:focus-visible { outline: 2px solid #fde68a; outline-offset: 3px; }
.fp-note { text-align: center; font-size: 12px; color: #a1a1b5; }
.fp-alt {
  min-height: 44px;
  width: 100%;
  margin-top: 4px;
  background: none;
  border: 0;
  border-radius: 12px;
  color: #f9a8d4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  padding: 8px 10px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(249, 168, 212, 0.4);
  text-underline-offset: 3px;
}
.fp-alt:focus-visible { outline: 2px solid #f9a8d4; outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .fp-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(245, 158, 11, 0.35); }
  .fp-alt:hover { color: #fbcfe8; background: rgba(236, 72, 153, 0.08); }
}

/* Toasts after payment */
.fp-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: calc(100vw - 32px);
  width: max-content;
  padding: 14px 22px;
  border-radius: 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-sizing: border-box;
}
.fp-toast-ok {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 10px 35px rgba(16, 185, 129, 0.5);
}
.fp-toast-wait {
  background: #1f1b2e;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}
/* The longer «waiting for the payment» note: readable text, tap to dismiss */
.fp-toast-long {
  width: auto;
  max-width: min(520px, calc(100vw - 32px));
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

@media (max-width: 600px) {
  .fp-overlay { padding: 8px; }
  .fp-modal { margin: 8px auto; }
  .fp-content { padding: 22px 16px 16px; }
}
@media (max-width: 380px) {
  .fp-ring { width: 136px; height: 136px; }
  .fp-ring-pct { font-size: 36px; }
  .fp-cta { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-ring-arc, .fp-cta { transition: none; }
}
