/* potuspercent.com's own block inside the Lovetere frame (family/FRAME.md, "custom block"): the ring card with the
   app icon beside the hero copy. Moved from assets/site.css (.preview-card, .preview-ring, .app-icon, .preview-copy),
   its colours now from the theme tokens plus the two below, so it has a light and a dark look. */
:root {
  --pp-ring-hi: #ff7c87;
  --pp-ring-soft: #ffd0d3;
  --pp-disc: linear-gradient(180deg, #ffffff, #fbe7ea);
  --pp-icon-shadow: 0 18px 30px rgba(36, 12, 20, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --pp-disc: linear-gradient(180deg, rgba(101, 34, 48, 0.94), rgba(66, 20, 32, 0.94));
    --pp-icon-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
  }
}

.fr-hero__media > .fr-custom { width: 100%; max-width: 440px; }

.preview-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: var(--r-card);
  border: var(--border-card);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
}

.preview-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 17rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 220deg, rgba(255, 124, 135, 0.14), var(--pp-ring-hi), var(--pp-ring-soft), rgba(255, 124, 135, 0.14));
}

.preview-ring::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 50%;
  background: var(--pp-disc);
  box-shadow: inset 0 0 0 1px var(--c-line);
}

.fr .preview-ring .app-icon {
  position: relative;
  z-index: 1;
  width: 44%;
  max-width: 7.2rem;
  height: auto;
  border-radius: var(--r-icon);
  box-shadow: var(--pp-icon-shadow);
}

.preview-copy {
  display: grid;
  gap: 0.75rem;
}

.preview-copy p {
  color: var(--c-muted);
}

@media (max-width: 1039px) {
  .preview-ring { width: min(100%, 15rem); }
}
