/* ================================
   PF Preview • Full CSS
   Scope: #PF-preview
================================ */

/* Design tokens */
:root {
  --rail-max: 1120px;

  /* colors */
  --ink-900: #141313;
  --ink-800: #1f1f1f;
  --ink-700: #383737;
  --teal: #165c7d;
  --section-bg: #F9F8F6; /* light blue panel */
  --gold-1: #FF6C63;     /* coral gradient start */
  --gold-2: #FF857A;     /* coral gradient end */

  /* effects */
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08);
  --easing: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Section shell */
#PF-preview.PF-preview {
  background: var(--section-bg);
  padding: clamp(28px, 6vw, 72px) 0;
  color: var(--ink-900);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Rail */
#PF-preview .lp-rail {
  max-width: var(--rail-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

/* Intro block */
#PF-preview .lp-intro {
  max-width: 980px;
  margin-inline: auto;
}
#PF-preview .lp-headline {
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.3;
  letter-spacing: 0.2px;
  margin: 0 0 clamp(10px, 2vw, 14px);
}
#PF-preview .lp-introtext {
  font: 400 clamp(14px, 1.6vw, 16px) / 1.7 "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink-700);
  margin: 0 0 clamp(18px, 3vw, 28px);
  max-width: none;
  width: 100%;
  text-wrap: pretty;
  hyphens: auto;
}

/* Section title with side lines */
#PF-preview .lp-title {
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.2;
  text-align: center;
  margin: 0 0 clamp(18px, 3vw, 26px);
}
#PF-preview .lp-title > span {
  position: relative;
  display: inline-block;
  padding: 0 18px;
}
#PF-preview .lp-title > span::before,
#PF-preview .lp-title > span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(18vw, 200px);
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 40%, var(--teal) 60%, transparent 100%);
  opacity: 0.35;
  transform: translateY(-50%);
}
#PF-preview .lp-title > span::before { right: calc(100% + 8px); }
#PF-preview .lp-title > span::after {  left:  calc(100% + 8px); }

/* Grid */
#PF-preview .lp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
  place-items: center;
}
@media (max-width: 980px) {
  #PF-preview .lp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  #PF-preview .lp-grid { grid-template-columns: 1fr; }
}

/* Items */
#PF-preview .lp-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  animation: lp-fadeup 0.5s var(--easing) forwards;
} 
#PF-preview .lp-item:nth-child(1) { animation-delay: 0.06s; }
#PF-preview .lp-item:nth-child(2) { animation-delay: 0.12s; }
#PF-preview .lp-item:nth-child(3) { animation-delay: 0.18s; }
#PF-preview .lp-item:nth-child(4) { animation-delay: 0.24s; }
#PF-preview .lp-item:nth-child(5) { animation-delay: 0.30s; }
#PF-preview .lp-item:nth-child(6) { animation-delay: 0.36s; }

/* Badge behind icons, coral gradient */
#PF-preview .lp-badge {
  --size: 112px;
  width: var(--size);
  height: var(--size);
  border-radius: 10px;

  /* force coral gradient */
  background: radial-gradient(
    120% 120% at 30% 20%,
    #e9d4d2 0%,   /* bright coral */
    #ed8a83 80%   /* softer coral edge */
  ) !important;

  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  animation: lp-float 3.6s ease-in-out infinite;
}
#PF-preview .lp-badge img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s var(--easing);
}
#PF-preview .lp-item:hover .lp-badge img {
  transform: translateY(-2px) scale(1.03);
}

/* Text */
#PF-preview .lp-text {
  font: 400 clamp(14px, 1.7vw, 16px) / 1.6 "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink-700);
  max-width: 26ch;
}
#PF-preview .lp-text strong {
  color: var(--ink-800);
  font-weight: 700;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #PF-preview .lp-item,
  #PF-preview .lp-badge { animation: none; }
  #PF-preview .lp-item { opacity: 1; transform: none; }
}

/* Animations */
@keyframes lp-fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
