/* Hallmark · macrostructure: Product Template (hero left, visual right) · tone: calm-technical · anchor hue: lavender + gold
   Platform pages hero + shared bits (A5, Krish review Oct 19: K-013, K-019, K-020, K-026, K-046).
   Used by /api, /mcp, /components, /personalization-suite and /products (body class "pf"). One hero for all five,
   the same pattern as /pi and /miia: LEFT title + one line + the two CTAs, RIGHT a visual or a testimonial video;
   the proof band (logos + the three averages) and the dark testimonial slider follow directly under it.
   Locked palette only (gold, gold300, ink, lavender, mist, slate, violet for focus). Pill buttons, 24px corners. */

.pf {
  --gold: #FFC61E; --gold3: #FFE8A5; --ink: #110A33; --violet: #341D99; --lav: #DDD6FF; --mist: #F6F4FF; --slate: #5B6478;
  --pf-ease: cubic-bezier(.23, 1, .32, 1); --pf-disp: "Cabinet Grotesk", Cabinetgrotesk, Arial, sans-serif;
  --pf-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pf-sh-sm: 0 2px 8px rgba(17, 10, 51, .08); --pf-sh-md: 0 12px 32px -12px rgba(17, 10, 51, .22); --pf-sh-lg: 0 32px 64px -24px rgba(17, 10, 51, .35);
}
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Hero ---------- */
.pf-hero { padding: 104px 0 24px; background: linear-gradient(180deg, #DDD6FF 0%, #ECE8FF 38%, #F6F4FF 70%, #fff 100%); color: var(--ink); font-family: Manrope, "Manrope Fallback", Arial, sans-serif; }
.pf-hero *, .pf-hero *::before, .pf-hero *::after { box-sizing: border-box; }
.pf-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; align-items: center; max-width: 1328px; margin: 0 auto; padding: 0 40px; }
.pf-hero__l { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.pf-mark { display: block; width: 56px; height: 56px; border-radius: 50%; box-shadow: var(--pf-sh-md); }
.pf-hero h1 { margin: 0; font: 700 clamp(36px, 4.4vw, 58px)/1.05 var(--pf-disp); letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
.pf-hero h1 .pf-type { display: block; margin-top: 10px; font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; letter-spacing: -.01em; }
.pf-zing { margin: 0; max-width: 32rem; font-size: 20px; line-height: 1.45; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.pf-zing a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pf-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 700 16px/1.2 Manrope, "Manrope Fallback", Arial, sans-serif; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .2s var(--pf-ease), color .2s var(--pf-ease), transform .16s var(--pf-ease); }
.pf-btn--gold, .pf-btn--gold:visited { background: var(--gold); color: var(--ink); box-shadow: var(--pf-sh-sm); }
.pf-btn--gold:hover { background: var(--gold3); color: var(--ink); }
.pf-btn--line, .pf-btn--line:visited { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pf-btn--line:hover { background: var(--ink); color: #fff; }
.pf-btn:active { transform: scale(.96); }
.pf-btn:focus-visible, .pf-hero a:focus-visible, .pf-hero button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pf-sublink { display: inline-flex; align-items: center; min-height: 44px; font: 700 15px/1 var(--pf-disp); color: var(--ink); text-underline-offset: 4px; }
.pf-hero__r { min-width: 0; }
.pf-hero__r .hxv { width: 100%; border-radius: 24px; box-shadow: var(--pf-sh-lg); }

/* Testimonial video card in the hero's right slot (partials/hx-video + who it is) */
.pf-vid { margin: 0; }
.pf-vid .hxv { margin: 0; }
.pf-vid figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--slate); }
.pf-vid figcaption b { color: var(--ink); font-weight: 700; }

/* Proof band extras (names, caption) now live in the shared partials/hx-proof + public/v2/shared/proof.css */

/* ---------- Section head, shared ---------- */
.pf-head { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.pf-head h2 { margin: 0; font: 700 clamp(28px, 2.2vw + 12px, 36px)/1.12 var(--pf-disp); letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
.pf-head p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.pf-head a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* Pause control for any hero animation (WCAG 2.2.2) */
.pf-pause { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(17, 10, 51, .72); color: #fff; cursor: pointer; transition: background-color .2s var(--pf-ease), transform .16s var(--pf-ease); }
.pf-pause:hover { background: var(--ink); }
.pf-pause:active { transform: scale(.92); }
.pf-pause svg { width: 16px; height: 16px; }
.pf-pause .i-play { display: none; }
.pf-pause[aria-pressed="true"] .i-pause { display: none; }
.pf-pause[aria-pressed="true"] .i-play { display: block; }
.pf-pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1023px) {
  .pf-hero { padding-top: 96px; }
  .pf-hero__in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 0 24px; }
  .pf-hero__r { max-width: 680px; width: 100%; }
}
@media (max-width: 599px) {
  .pf-hero { padding-top: 84px; padding-bottom: 8px; }
  .pf-hero__in { padding: 0 16px; gap: 24px; }
  .pf-hero__l { gap: 16px; align-items: center; text-align: center; }
  .pf-zing { font-size: 18px; }
  .pf-mark { width: 48px; height: 48px; }
  .pf-ctas { width: 100%; }
  .pf-ctas .pf-btn { flex: 1 1 140px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .pf-btn, .pf-pause { transition: none; } }
