/* =====================================================================
   PinBoostr — Landing page styles (self-contained, no Tailwind purge dep)
   Prefix: .pbl-  | Font: Inter (loaded globally) | Accent: red→pink
   ===================================================================== */

:root {
  /* PinBoostr retro warm palette — cream surfaces, warm ink, rose accent kept */
  --pbl-ink: #2a1c21;
  --pbl-ink-2: #5c4a50;
  --pbl-ink-3: #8c757c;
  --pbl-line: #ecd9cf;
  --pbl-line-2: #f3e7df;
  --pbl-bg: #fdf5ef;
  --pbl-bg-soft: #f6e8de;
  --pbl-dark: #23121a;
  --pbl-red: #ef4444;
  --pbl-pink: #db2777;
  --pbl-rose: #e11d48;
  --pbl-green: #059669;
  --pbl-grad: linear-gradient(135deg, #ef4444 0%, #db2777 100%);
  --pbl-grad-soft: linear-gradient(135deg, #fff1f2 0%, #fdf5ef 55%, #f6e8de 100%);
  --pbl-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --pbl-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --pbl-shadow-lg: 0 30px 70px rgba(16, 24, 40, .16);
  --pbl-radius: 22px;
  --pbl-radius-sm: 14px;
}

.pbl { color: var(--pbl-ink); -webkit-font-smoothing: antialiased; }
.pbl *, .pbl *::before, .pbl *::after { box-sizing: border-box; }
.pbl img { display: block; max-width: 100%; height: auto; }

.pbl-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pbl-section { padding: 72px 0; }
@media (min-width: 768px) { .pbl-section { padding: 104px 0; } }
.pbl-section--soft { background: var(--pbl-bg-soft); }
.pbl-section--dark { background: var(--pbl-dark); color: #fff; }

/* ---- Typography ---- */
.pbl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pbl-rose);
}
.pbl-eyebrow--ondark { color: #fda4af; }
.pbl-h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.pbl-h2 { font-size: clamp(1.8rem, 4vw, 2.85rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.pbl-h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; margin: 0; }
.pbl-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; color: var(--pbl-ink-2); margin: 18px 0 0; max-width: 42ch; }
.pbl-grad-text { background: var(--pbl-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pbl-center { text-align: center; }
.pbl-center .pbl-lead { margin-left: auto; margin-right: auto; }
.pbl-section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.pbl-section-head .pbl-h2 { margin-top: 14px; }
.pbl-section-head .pbl-eyebrow { justify-content: center; }
.pbl-section-head .pbl-lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.pbl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1rem; font-weight: 800; line-height: 1; text-decoration: none;
  padding: 16px 26px; border-radius: 14px; cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  min-height: 54px;
}
.pbl-btn--primary { background: var(--pbl-grad); color: #fff; box-shadow: 0 14px 30px rgba(219, 39, 119, .28); }
.pbl-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(219, 39, 119, .38); color: #fff; }
.pbl-btn--ghost { background: #fff; color: var(--pbl-ink); border: 1px solid var(--pbl-line); }
.pbl-btn--ghost:hover { transform: translateY(-2px); border-color: #d6d9e2; box-shadow: var(--pbl-shadow); }
.pbl-btn--ondark { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.pbl-btn--ondark:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-2px); }
.pbl-btn i { font-size: .85em; transition: transform .2s ease; }
.pbl-btn--primary:hover i { transform: translateX(3px); }

/* ---- Hero ---- */
.pbl-hero { position: relative; overflow: hidden; background: var(--pbl-grad-soft); padding: 56px 0 72px; }
@media (min-width: 1024px) { .pbl-hero { padding: 80px 0 110px; } }
.pbl-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(239, 68, 68, .10), transparent 60%),
    radial-gradient(50rem 36rem at -10% 110%, rgba(219, 39, 119, .08), transparent 60%);
}
.pbl-hero__inner { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .pbl-hero__inner { grid-template-columns: 1.02fr 1.18fr; gap: 56px; } }
.pbl-hero__copy { max-width: 640px; }
.pbl-hero .pbl-h1 { margin-top: 18px; }
.pbl-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pbl-hero__risk { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--pbl-ink-3); font-size: .9rem; font-weight: 600; }
.pbl-hero__risk span { display: inline-flex; align-items: center; gap: 7px; }
.pbl-hero__risk i { color: var(--pbl-green); }

/* social proof row */
.pbl-proofrow { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.pbl-avatars { display: flex; }
.pbl-avatars span {
  width: 38px; height: 38px; border-radius: 999px; border: 2px solid #fff; margin-left: -10px;
  background: var(--pbl-grad); color: #fff; font-weight: 800; font-size: .8rem;
  display: grid; place-items: center; box-shadow: var(--pbl-shadow-sm);
}
.pbl-avatars span:first-child { margin-left: 0; }
.pbl-proofrow__text { font-size: .9rem; color: var(--pbl-ink-2); font-weight: 600; }
.pbl-proofrow__text strong { color: var(--pbl-ink); }
.pbl-stars { color: #f59e0b; letter-spacing: 2px; }

/* ---- Browser / dashboard mockup ---- */
.pbl-window {
  background: #fff; border: 1px solid var(--pbl-line); border-radius: var(--pbl-radius);
  box-shadow: var(--pbl-shadow-lg); overflow: hidden;
}
.pbl-window__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--pbl-line-2); background: #fbfbfd; }
.pbl-dot { width: 11px; height: 11px; border-radius: 999px; background: #e2e4ea; }
.pbl-dot--r { background: #ff5f57; } .pbl-dot--y { background: #febc2e; } .pbl-dot--g { background: #28c840; }
.pbl-window__url { margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--pbl-line-2); border-radius: 8px; padding: 6px 12px; font-size: 12px; color: var(--pbl-ink-3); display: flex; align-items: center; gap: 7px; }
.pbl-window__url i { color: var(--pbl-green); font-size: 11px; }
.pbl-window__body { padding: 16px; }
.pbl-shot { display: block; width: 100%; height: auto; }

.pbl-app { display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.pbl-app__rail { display: flex; flex-direction: column; gap: 10px; align-items: center; padding-top: 4px; }
.pbl-app__logo { width: 36px; height: 36px; border-radius: 11px; background: var(--pbl-grad); color: #fff; display: grid; place-items: center; font-size: 15px; box-shadow: var(--pbl-shadow-sm); }
.pbl-app__ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #9aa1ad; font-size: 14px; background: #f4f5f8; }
.pbl-app__ico.is-active { background: #fff1f2; color: var(--pbl-rose); }
.pbl-app__main { min-width: 0; }
.pbl-app__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pbl-app__title { font-weight: 800; font-size: 15px; }
.pbl-app__title span { display: block; font-size: 11px; font-weight: 600; color: var(--pbl-ink-3); }

.pbl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.pbl-stat { border: 1px solid var(--pbl-line-2); border-radius: 12px; padding: 9px 11px; background: #fcfcfd; }
.pbl-stat b { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; }
.pbl-stat small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--pbl-ink-3); }
.pbl-stat--green b { color: var(--pbl-green); }
.pbl-stat--amber b { color: #d97706; }
.pbl-stat--blue b { color: #2563eb; }

.pbl-days { display: flex; gap: 7px; overflow: hidden; margin-bottom: 14px; }
.pbl-day { flex: 0 0 auto; border: 1px solid var(--pbl-line-2); border-radius: 10px; padding: 6px 10px; text-align: center; background: #fff; }
.pbl-day b { display: block; font-size: 13px; font-weight: 800; color: var(--pbl-rose); }
.pbl-day small { font-size: 10px; color: var(--pbl-ink-3); font-weight: 600; }

.pbl-pingrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pbl-pincard { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--pbl-line-2); box-shadow: var(--pbl-shadow-sm); background: #f4f5f8; aspect-ratio: 2 / 3; }
.pbl-pincard img { width: 100%; height: 100%; object-fit: cover; }
.pbl-pincard__check { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 999px; background: var(--pbl-green); color: #fff; display: grid; place-items: center; font-size: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.pbl-pincard__board { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 9px; font-weight: 700; color: #fff; background: rgba(15,16,32,.55); backdrop-filter: blur(4px); padding: 3px 7px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* floating badges around mockup */
.pbl-hero__visual { position: relative; }
.pbl-float {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--pbl-line);
  border-radius: 14px; box-shadow: var(--pbl-shadow-lg); padding: 11px 14px; display: flex; align-items: center; gap: 10px;
}
.pbl-float i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 13px; }
.pbl-float b { font-size: 14px; font-weight: 800; display: block; line-height: 1.1; }
.pbl-float small { font-size: 11px; color: var(--pbl-ink-3); font-weight: 600; }
.pbl-float--tl { top: -18px; left: -14px; } .pbl-float--tl i { background: var(--pbl-green); }
.pbl-float--br { bottom: -20px; right: -10px; } .pbl-float--br i { background: var(--pbl-grad); }
@media (max-width: 600px) { .pbl-float { display: none; } .pbl-pingrid { grid-template-columns: repeat(4, 1fr); } }

/* ---- Hero pin collage (staggered masonry, replaces video) ---- */
.pbl-collage { position: relative; }
.pbl-collage__glow {
  position: absolute; inset: -10% -6%; z-index: 0; pointer-events: none; filter: blur(10px);
  background:
    radial-gradient(55% 55% at 72% 18%, rgba(239, 68, 68, .20), transparent 70%),
    radial-gradient(50% 50% at 18% 92%, rgba(219, 39, 119, .16), transparent 70%);
}
.pbl-collage__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.pbl-collage__col { display: grid; gap: 14px; }
.pbl-collage__col--a { margin-top: 104px; }
.pbl-collage__col--b { margin-top: 48px; }
.pbl-collage__col--c { margin-top: 0; }
.pbl-tile { position: relative; border-radius: 18px; overflow: hidden; background: #eef0f5; aspect-ratio: 2 / 3; border: 1px solid rgba(255,255,255,.75); box-shadow: 0 18px 40px rgba(16, 24, 40, .14); transition: transform .3s ease, box-shadow .3s ease; }
.pbl-tile:hover { transform: translateY(-5px); box-shadow: 0 26px 55px rgba(16, 24, 40, .20); }
.pbl-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbl-tile--set { aspect-ratio: 1 / 1; background: #fff; }
.pbl-tile__set { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; width: 100%; height: 100%; }
.pbl-tile__set img { width: 100%; height: 100%; object-fit: cover; }
.pbl-tile__cap { position: absolute; left: 9px; right: 9px; bottom: 9px; background: rgba(255,255,255,.94); border-radius: 11px; padding: 8px 10px; box-shadow: 0 6px 14px rgba(16,24,40,.12); }
.pbl-tile__cap small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pbl-ink-3); }
.pbl-tile__cap b { font-size: 12px; font-weight: 800; color: var(--pbl-ink); line-height: 1.2; }

.pbl-cpill { position: absolute; z-index: 3; background: rgba(255,255,255,.96); border: 1px solid #fff; border-radius: 14px; box-shadow: var(--pbl-shadow-lg); padding: 10px 14px; backdrop-filter: blur(6px); animation: pbl-float 5s ease-in-out infinite; }
.pbl-cpill small { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pbl-cpill b { display: block; font-size: 17px; font-weight: 800; color: var(--pbl-ink); margin-top: 1px; }
.pbl-cpill--tl { top: -14px; left: -10px; } .pbl-cpill--tl small { color: var(--pbl-green); }
.pbl-cpill--br { bottom: -14px; right: -8px; animation-delay: 1.5s; } .pbl-cpill--br small { color: var(--pbl-rose); }
@keyframes pbl-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 1023px) {
  .pbl-collage__col--a { margin-top: 64px; }
  .pbl-collage__col--b { margin-top: 30px; }
}
@media (max-width: 520px) {
  .pbl-collage__grid { gap: 10px; }
  .pbl-collage__col--a { margin-top: 40px; }
  .pbl-collage__col--b { margin-top: 20px; }
  .pbl-cpill { display: none; }
}

/* ---- Trust strip ---- */
.pbl-trust { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 36px; }
.pbl-trust__item { display: inline-flex; align-items: center; gap: 9px; color: var(--pbl-ink-2); font-weight: 700; font-size: .95rem; }
.pbl-trust__item i { color: var(--pbl-rose); font-size: 1.05rem; }

/* ---- How it works ---- */
.pbl-steps { display: grid; gap: 22px; }
@media (min-width: 900px) { .pbl-steps { grid-template-columns: repeat(3, 1fr); } }
.pbl-step { position: relative; background: #fff; border: 1px solid var(--pbl-line); border-radius: var(--pbl-radius); padding: 28px; box-shadow: var(--pbl-shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.pbl-step:hover { transform: translateY(-4px); box-shadow: var(--pbl-shadow); }
.pbl-step__n { position: absolute; top: 22px; right: 24px; font-size: 2.6rem; font-weight: 800; color: #f1f2f6; line-height: 1; }
.pbl-step__ico { width: 52px; height: 52px; border-radius: 15px; background: #fff1f2; color: var(--pbl-rose); display: grid; place-items: center; font-size: 21px; margin-bottom: 18px; }
.pbl-step .pbl-h3 { margin-bottom: 8px; }
.pbl-step p { color: var(--pbl-ink-2); line-height: 1.6; margin: 0; font-size: .98rem; }

/* ---- Compact feature grid (more features) ---- */
.pbl-fgrid { display: grid; gap: 18px; }
@media (min-width: 680px) { .pbl-fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pbl-fgrid { grid-template-columns: repeat(3, 1fr); } }
.pbl-fcard { background: #fff; border: 1px solid var(--pbl-line); border-radius: var(--pbl-radius); padding: 24px; box-shadow: var(--pbl-shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.pbl-fcard:hover { transform: translateY(-4px); box-shadow: var(--pbl-shadow); }
.pbl-fcard__ico { width: 46px; height: 46px; border-radius: 13px; background: #fff1f2; color: var(--pbl-rose); display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; }
.pbl-fcard h3 { font-size: 1.05rem; font-weight: 800; color: var(--pbl-ink); margin: 0 0 6px; }
.pbl-fcard p { color: var(--pbl-ink-2); line-height: 1.6; margin: 0; font-size: .95rem; }

/* ---- Feature rows (alternating) ---- */
.pbl-feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .pbl-feature { grid-template-columns: 1fr 1fr; gap: 64px; } .pbl-feature + .pbl-feature { margin-top: 96px; } }
.pbl-feature + .pbl-feature { margin-top: 56px; }
@media (min-width: 1000px) { .pbl-feature--flip .pbl-feature__media { order: -1; } }
.pbl-feature__copy { max-width: 520px; }
.pbl-feature .pbl-h2 { margin-top: 12px; }
.pbl-feature__copy p { color: var(--pbl-ink-2); line-height: 1.7; margin: 16px 0 0; }
.pbl-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.pbl-list li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; color: var(--pbl-ink); }
.pbl-list i { color: var(--pbl-green); margin-top: 3px; }
.pbl-feature__media { position: relative; }

/* fanned pin trio */
.pbl-fan { position: relative; padding: 18px 0; min-height: 360px; display: flex; justify-content: center; }
.pbl-fan figure { position: absolute; width: 40%; max-width: 220px; border-radius: 16px; overflow: hidden; box-shadow: var(--pbl-shadow-lg); border: 4px solid #fff; background: #f4f5f8; margin: 0; aspect-ratio: 2/3; }
.pbl-fan figure img { width: 100%; height: 100%; object-fit: cover; }
.pbl-fan figure:nth-child(1) { transform: rotate(-9deg) translateX(-46%); top: 26px; z-index: 1; }
.pbl-fan figure:nth-child(2) { transform: rotate(0deg); top: 0; z-index: 3; }
.pbl-fan figure:nth-child(3) { transform: rotate(9deg) translateX(46%); top: 26px; z-index: 1; }

/* autopilot control panel mockup */
.pbl-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid var(--pbl-line-2); border-radius: 12px; background: #fcfcfd; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.pbl-ctrl small { color: var(--pbl-ink-3); font-weight: 700; }
.pbl-pill-on { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--pbl-green); background: #ecfdf5; border: 1px solid #a7f3d0; padding: 4px 10px; border-radius: 999px; }
.pbl-toggle { width: 40px; height: 23px; border-radius: 999px; background: var(--pbl-green); position: relative; flex: 0 0 auto; }
.pbl-toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 19px; height: 19px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pbl-mini-queue { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }

/* analytics mockup */
.pbl-analytics__metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 480px) { .pbl-analytics__metrics { grid-template-columns: repeat(4, 1fr); } }
.pbl-metric { border: 1px solid var(--pbl-line-2); border-radius: 13px; padding: 12px 13px; background: #fcfcfd; }
.pbl-metric small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--pbl-ink-3); display: flex; align-items: center; gap: 5px; }
.pbl-metric b { font-size: 20px; font-weight: 800; display: block; margin-top: 4px; }
.pbl-metric span.up { color: var(--pbl-green); font-size: 11px; font-weight: 800; }
.pbl-chart { border: 1px solid var(--pbl-line-2); border-radius: 14px; padding: 14px; background: #fff; }
.pbl-chart svg { width: 100%; height: auto; display: block; }

/* ---- Gallery ---- */
.pbl-gallery { columns: 2; column-gap: 14px; }
@media (min-width: 640px) { .pbl-gallery { columns: 3; } }
@media (min-width: 1000px) { .pbl-gallery { columns: 4; column-gap: 16px; } }
.pbl-gallery figure { break-inside: avoid; margin: 0 0 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--pbl-line-2); box-shadow: var(--pbl-shadow-sm); background: #f4f5f8; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.pbl-gallery figure:hover { transform: translateY(-4px); box-shadow: var(--pbl-shadow); }
.pbl-gallery img { width: 100%; }
.pbl-gallery figcaption { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(15,16,32,.6); backdrop-filter: blur(4px); padding: 5px 10px; border-radius: 999px; }
.pbl-gallery figcaption i { color: #ff6b81; font-size: 12px; }

/* ---- Final CTA (dark) ---- */
.pbl-cta { position: relative; overflow: hidden; }
.pbl-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 15% -20%, rgba(239,68,68,.18), transparent 60%),
    radial-gradient(40rem 30rem at 90% 120%, rgba(219,39,119,.18), transparent 60%); }
.pbl-cta__inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.pbl-cta .pbl-h2 { color: #fff; }
.pbl-cta p { color: #c7cad3; font-size: 1.1rem; line-height: 1.6; margin: 18px auto 0; max-width: 48ch; }
.pbl-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.pbl-cta__risk { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 26px; color: #8b909c; font-size: .9rem; font-weight: 600; }
.pbl-cta__risk span { display: inline-flex; align-items: center; gap: 7px; }
.pbl-cta__risk i { color: #34d399; }

/* ---- Preview-your-page form (hero lead magnet) ---- */
.pbl-preview { position: relative; z-index: 2; max-width: 640px; margin: 44px auto 0; background: rgba(255,255,255,.85); border: 1px solid var(--pbl-line); border-radius: var(--pbl-radius); box-shadow: var(--pbl-shadow); padding: 22px 22px 20px; text-align: center; backdrop-filter: blur(6px); }
.pbl-preview__eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pbl-rose); }
/* compact variant: lives under the hero copy, no card chrome */
.pbl-preview--compact { max-width: 38rem; margin: 20px auto 0; padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; text-align: inherit; }
.pbl-preview--compact .pbl-preview__eyebrow { margin-bottom: 9px; letter-spacing: .1em; }
@media (min-width: 1024px) { .pbl-preview--compact { margin-left: 0; margin-right: 0; } }
.pbl-preview__sub { margin: 8px 0 16px; font-size: .95rem; color: var(--pbl-ink-2); font-weight: 600; }
.pbl-preview__form { display: flex; gap: 8px; background: #fff; border: 1px solid var(--pbl-line); border-radius: 14px; padding: 6px; box-shadow: var(--pbl-shadow-sm); }
.pbl-preview__form:focus-within { border-color: #f3b3bd; box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }
.pbl-preview__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; font-size: .98rem; font-weight: 600; color: var(--pbl-ink); }
.pbl-preview__input::placeholder { color: #aab0bd; font-weight: 500; }
.pbl-preview__btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--pbl-grad); color: #fff; font-weight: 800; font-size: .95rem; padding: 12px 20px; border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.pbl-preview__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(219,39,119,.3); }
.pbl-preview__btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.pbl-preview__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.pbl-chip { border: 1px solid #f3c2cb; background: #fff; color: var(--pbl-rose); font-weight: 800; font-size: .82rem; padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: all .2s ease; }
.pbl-chip:hover { background: #fff1f2; }
.pbl-chip.is-active { background: var(--pbl-grad); color: #fff; border-color: transparent; }
.pbl-preview__err { margin: 12px 0 0; color: #dc2626; font-size: .88rem; font-weight: 700; }
.pbl-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 999px; animation: pbl-rotate .7s linear infinite; }
@keyframes pbl-rotate { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .pbl-preview__form { flex-direction: column; }
  .pbl-preview__btn { justify-content: center; padding: 13px 20px; }
}

/* ---- Results modal ---- */
body.pbl-modal-open { overflow: hidden; }
.pbl-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-start; justify-content: center; padding: 24px 14px; overflow-y: auto; }
.pbl-modal__backdrop { position: fixed; inset: 0; background: rgba(11, 16, 32, .6); backdrop-filter: blur(4px); animation: pbl-fade .2s ease; }
.pbl-modal__panel { position: relative; z-index: 1; width: 100%; max-width: 920px; margin: auto; background: #fff; border-radius: 24px; box-shadow: var(--pbl-shadow-lg); overflow: hidden; animation: pbl-pop .25s cubic-bezier(.16,1,.3,1); }
.pbl-modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: var(--pbl-ink); font-size: 17px; cursor: pointer; display: grid; place-items: center; box-shadow: var(--pbl-shadow-sm); }
.pbl-modal__close:hover { background: #fff; box-shadow: var(--pbl-shadow); }
@keyframes pbl-fade { from { opacity: 0; } }
@keyframes pbl-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.pbl-mhead { padding: 30px 30px 22px; background: var(--pbl-grad-soft); border-bottom: 1px solid var(--pbl-line-2); }
.pbl-mhead__site { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--pbl-rose); letter-spacing: .02em; }
.pbl-mhead h2 { margin: 10px 0 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.pbl-mhead p { margin: 8px 0 0; color: var(--pbl-ink-2); font-size: .95rem; max-width: 60ch; }
.pbl-mbody { padding: 24px 30px 30px; }

.pbl-mstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
@media (min-width: 620px) { .pbl-mstats { grid-template-columns: repeat(4, 1fr); } }
.pbl-mstat { border: 1px solid var(--pbl-line-2); border-radius: 16px; padding: 16px; background: #fcfcfd; }
.pbl-mstat small { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--pbl-ink-3); }
.pbl-mstat b { display: block; font-size: 26px; font-weight: 800; margin-top: 5px; line-height: 1; }
.pbl-mtrust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pbl-conf { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; border: 1px solid transparent; }
.pbl-conf--high { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.pbl-conf--medium { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.pbl-conf--low { color: #6b7280; background: #f3f4f6; border-color: #e5e7eb; }
.pbl-mchip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--pbl-ink-3); padding: 5px 11px; border-radius: 999px; background: #fcfcfd; border: 1px solid var(--pbl-line-2); }
.pbl-mchip .fa-pinterest { color: var(--pbl-rose); }
.pbl-mbench { margin: 12px 0 0; font-size: 12px; font-weight: 600; color: var(--pbl-ink-2); display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; }
.pbl-mbench .fa-chart-simple { color: var(--pbl-rose); margin-top: 2px; }
.pbl-mnote { margin: 10px 0 0; font-size: 12px; color: var(--pbl-ink-3); font-weight: 600; display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; }
.pbl-mnote .fa-circle-info { margin-top: 2px; }
.pbl-mnote__basis { font-weight: 800; color: var(--pbl-ink); }
.pbl-mwow { margin: 18px 0 0; text-align: center; font-size: clamp(1.02rem, 2.4vw, 1.3rem); font-weight: 800; line-height: 1.35; color: var(--pbl-ink); }
.pbl-mwow b { background: var(--pbl-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pbl-mwow span { color: var(--pbl-rose); }

.pbl-msub { margin: 26px 0 14px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pbl-ink-3); }
.pbl-mpins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .pbl-mpins { grid-template-columns: repeat(5, 1fr); } }
.pbl-mpin { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 3; background: #e9ebf0; box-shadow: var(--pbl-shadow); color: #fff; }
.pbl-mpin .pbl-mpin__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pbl-mpin .pbl-pinsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pbl-mpin__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,32,0) 30%, rgba(11,16,32,.45) 62%, rgba(11,16,32,.9) 100%); }
.pbl-mpin__title { position: absolute; left: 11px; right: 11px; bottom: 26px; font-size: 13px; font-weight: 900; line-height: 1.22; letter-spacing: -.01em; text-shadow: 0 1px 6px rgba(0,0,0,.55); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pbl-mpin__brand { position: absolute; left: 11px; bottom: 9px; font-size: 9px; font-weight: 700; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pbl-mpin__tag { position: absolute; top: 9px; left: 9px; z-index: 2; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.95); color: var(--pbl-rose); padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.pbl-mpin__deco { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; color: rgba(255,255,255,.3); }
.pbl-mpin--g0 { background: linear-gradient(145deg, #ef4444, #db2777); }
.pbl-mpin--g1 { background: linear-gradient(145deg, #7c3aed, #db2777); }
.pbl-mpin--g2 { background: linear-gradient(145deg, #0ea5e9, #6366f1); }
.pbl-mpin--g3 { background: linear-gradient(145deg, #f59e0b, #ef4444); }
.pbl-mpin--g4 { background: linear-gradient(145deg, #10b981, #0ea5e9); }
.pbl-mpin--g5 { background: linear-gradient(145deg, #ec4899, #8b5cf6); }

/* about themes + charts */
.pbl-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pbl-tagchip { font-size: 11px; font-weight: 800; color: var(--pbl-rose); background: #fff1f2; border: 1px solid #f3c2cb; padding: 4px 11px; border-radius: 999px; }
.pbl-mcharts { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 22px 0 0; }
@media (min-width: 680px) { .pbl-mcharts { grid-template-columns: 1fr 1fr; } }
.pbl-mcard { border: 1px solid var(--pbl-line-2); border-radius: 16px; padding: 14px 16px; background: #fcfcfd; }
.pbl-mcard__t { margin: 0 0 12px; font-size: 12px; font-weight: 800; color: var(--pbl-ink-2); }
.pbl-gchart { width: 100%; height: auto; display: block; }
.pbl-bars { display: flex; flex-direction: column; gap: 11px; }
.pbl-bar { display: grid; grid-template-columns: 82px 1fr 40px; align-items: center; gap: 8px; }
.pbl-bar__l { font-size: 11px; font-weight: 700; color: var(--pbl-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbl-bar__track { height: 9px; border-radius: 999px; background: #eef0f5; overflow: hidden; }
.pbl-bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--pbl-grad); }
.pbl-bar__n { font-size: 11px; font-weight: 800; color: var(--pbl-ink); text-align: right; }

.pbl-mcta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.pbl-mcta__risk { width: 100%; margin: 4px 0 0; font-size: 12px; color: var(--pbl-ink-3); font-weight: 600; }

/* modal loading + error states */
.pbl-mload { padding: 64px 30px; text-align: center; }
.pbl-mload__spin { width: 44px; height: 44px; border: 4px solid #f1d6db; border-top-color: var(--pbl-rose); border-radius: 999px; margin: 0 auto 20px; animation: pbl-rotate 0.8s linear infinite; }
.pbl-mload h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.pbl-mload p { margin: 8px 0 0; color: var(--pbl-ink-2); font-weight: 600; min-height: 1.4em; }

/* ---- Motion / a11y ---- */
@media (prefers-reduced-motion: reduce) {
  .pbl *, .pbl *::before, .pbl *::after { transition: none !important; animation: none !important; }
}
