/* ============================================================
   Product & Feature Releases  —  section #product
   ------------------------------------------------------------
   Clean, hand-authored replacement for the original Framer
   markup of this section. Pixel-matched to the Figma design
   (file M4o9H2XOAGsH6tgm2SHBbc, node 2001:463).

   Everything is scoped under `.pfr` so it can never collide
   with the remaining Framer styles on the page. Fonts are
   inherited from the global figtree.css override (Figtree).

   Values come straight from the Figma spec:
     section bg #fafafa · content width 1200px · pad 92px
     accent #e8503a · ink #1a1a1a · muted #8a8a8a
     card border rgba(26,26,26,.08) · tag border rgba(26,26,26,.1)
   ============================================================ */

/* While the swap script is active (html.pfr-js), keep the raw Framer
   #product section invisible so the old design never flashes before our
   clean version mounts. If the script never runs, this rule is inert and
   the original stays visible as a graceful fallback. Opacity (not display)
   preserves height to minimise layout shift during the swap. */
html.pfr-js #product:not([data-pfr]) { opacity: 0 !important; }

.pfr {
  /* tokens — tweak here, applies everywhere below */
  --pfr-bg:        #fafafa;
  --pfr-ink:       #1a1a1a;
  --pfr-accent:    #e8503a;
  --pfr-muted:     #8a8a8a;
  --pfr-eyebrow:   #c0c0c0;
  --pfr-card-line: rgba(26, 26, 26, 0.08);
  --pfr-tag-line:  rgba(26, 26, 26, 0.10);
  --pfr-meta-line: rgba(26, 26, 26, 0.20);
  --pfr-maxw:      1200px;

  box-sizing: border-box;
  width: 100%;
  background-color: var(--pfr-bg);
  padding: 92px 24px;            /* 92px block · 24px min side gutter */
  display: flex;
  justify-content: center;
  scroll-margin-top: 80px;       /* keeps sticky nav clear on #product jump */
}
.pfr *,
.pfr *::before,
.pfr *::after { box-sizing: border-box; }

.pfr-inner {
  width: 100%;
  max-width: var(--pfr-maxw);
  display: flex;
  flex-direction: column;
  gap: 56px;                     /* header  ->  cards */
}

/* ---------- Header ---------- */
.pfr-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;                     /* eyebrow -> title */
  text-align: center;
}
.pfr-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pfr-eyebrow-line {
  width: 20px;
  height: 1px;
  background-color: var(--pfr-accent);
  flex: none;
}
.pfr-eyebrow-text {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--pfr-eyebrow);
  white-space: nowrap;
}
.pfr-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.76px;
  line-height: 1.15;
  color: var(--pfr-ink);
}

/* ---------- Cards ---------- */
.pfr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.pfr-card {
  display: flex;
  flex-direction: column;
  gap: 20px;                     /* media -> body */
  text-decoration: none;
  color: inherit;
  min-width: 0;                  /* allow flex/grid children to shrink */
}
.pfr-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 588 / 600;       /* Figma card-image: 588 × 600 */
  border: 1px solid var(--pfr-card-line);   /* #1A1A1A @ 8% */
  overflow: hidden;
  background-color: #fff;
}
.pfr-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}
.pfr-card:hover .pfr-card-media img,
.pfr-card:focus-visible .pfr-card-media img { transform: scale(1.04); }

.pfr-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;                     /* meta -> text */
}
.pfr-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pfr-year {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--pfr-accent);
}
.pfr-meta-line {
  width: 16px;
  height: 1px;
  background-color: var(--pfr-meta-line);
  flex: none;
}
.pfr-card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;                     /* title -> tags */
}
.pfr-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pfr-ink);
}

.pfr-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pfr-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border: 1px solid var(--pfr-tag-line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  line-height: 15px;
  text-transform: uppercase;
  color: var(--pfr-muted);
  white-space: nowrap;
}

/* keyboard focus affordance for the whole card */
.pfr-card:focus-visible {
  outline: 2px solid var(--pfr-accent);
  outline-offset: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .pfr { padding-block: 64px; }
  .pfr-inner { gap: 40px; }
  .pfr-grid { grid-template-columns: 1fr; gap: 36px; }
  .pfr-title { font-size: 28px; letter-spacing: -0.4px; }
}
@media (max-width: 420px) {
  .pfr { padding-inline: 20px; }
  .pfr-title { font-size: 25px; }
}

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .pfr-card-media img { transition: none; }
  .pfr-card:hover .pfr-card-media img,
  .pfr-card:focus-visible .pfr-card-media img { transform: none; }
}
