.pf {
  --pf-gap: clamp(16px, 1.4vw, 20px);
  --pf-preview-h: clamp(130px, 10.5vw, 145px);
  padding-block: clamp(16px, 1.5vw, 22px);
  color: var(--navy);
  background: var(--offwhite);
}
.pf *, .pf *::before, .pf *::after { box-sizing: border-box; }
.pf-head { margin-bottom: 15px; }
.pf-head .rp-eyebrow { margin-bottom: 3px; color: #32665d; }
.pf-head h2 { font-size: clamp(2rem, 2.8vw, 2.5rem); }
.pf-head .rp-desc { margin-top: 4px; max-width: none; color: #49646c; }
.pf h3, .pf-body p, .pf-feature-copy p { margin: 0; }

.pf-feature {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  min-height: 250px;
  border: 1px solid var(--teal);
  border-radius: var(--rp-radius);
  color: var(--offwhite);
  background: radial-gradient(ellipse at 22% 69%, #205455, transparent 55%), var(--navy);
}
.pf-feature-copy { padding: 20px clamp(20px, 2.5vw, 36px); }
.pf-name { display: inline-block; color: var(--mint); font-size: .83rem; font-weight: 600; letter-spacing: .025em; }
.pf-feature h3 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); font-weight: 700; line-height: 1.32; }
.pf-feature-copy p { margin-top: 4px; color: #d5e5e0; font-size: .94rem; line-height: 1.55; }
.pf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pf-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 16px; min-height: 40px; border-radius: 12px;
  border: 1px solid transparent; background: var(--mint); color: var(--navy);
  font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.4; text-decoration: none;
}
.pf-pdf { color: var(--offwhite); background: transparent; border-color: #72918e; }
.pf-pdf svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pf-link:focus-visible { outline: 2px solid #22665d; outline-offset: 3px; }
.pf-feature .pf-link:focus-visible { outline-color: var(--mint); }

/* A scaled screenshot keeps the complete captured viewport inside its browser frame. */
.pf-preview {
  display: grid; place-items: center;
  height: var(--pf-preview-h);
  border-radius: 14px;
  background: linear-gradient(135deg, #e8efeb, #cdded8);
}
.pf-window {
  width: min(94%, calc((var(--pf-preview-h) - 23px) * 1.723));
  overflow: hidden; isolation: isolate;
  border: 1px solid #bdcfca; border-radius: 6px;
  background: #fff; box-shadow: 0 4px 10px rgb(11 32 44 / 14%);
}
.pf-chrome {
  display: flex; justify-content: center; align-items: center; position: relative;
  height: 14px; padding-inline: 22px;
  border-bottom: 1px solid #e1e7e4; background: #f4f7f5; color: #415a5c;
  font: 500 8px/1 system-ui, sans-serif;
}
.pf-chrome i {
  position: absolute; left: 5px; width: 3px; height: 3px; border-radius: 50%;
  background: #839b96; box-shadow: 5px 0 #9ab0aa, 10px 0 #b1c2bd;
}
.pf-chrome span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pf-window img { display: block; width: 100%; height: auto; aspect-ratio: 1120 / 650; }
.pf-feature .pf-preview {
  position: relative; align-self: stretch; height: auto; padding: 16px clamp(15px, 2vw, 30px);
  border-radius: var(--rp-radius); overflow: hidden; background: transparent;
}
.pf-feature .pf-preview::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(163 226 206 / 7%) 1px, transparent 1px),
    linear-gradient(rgb(163 226 206 / 7%) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, black 45%, transparent);
}
.pf-feature .pf-window {
  position: relative; width: min(100%, 460px); border-radius: 9px; border-color: #abbeb7;
  box-shadow: 0 10px 25px rgb(0 12 18 / 32%);
}
.pf-feature .pf-chrome { height: 19px; font-size: 9px; }
.pf-feature .pf-window img { aspect-ratio: 1280 / 565; }

.pf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--pf-gap); margin-top: var(--pf-gap); }
.pf-card {
  display: flex; flex-direction: column; min-width: 0; padding: 7px;
  background: var(--white); border: 1px solid #c5d5ce; border-radius: var(--rp-radius);
  box-shadow: 0 2px 6px rgb(11 32 44 / 4%);
}
.pf-body { display: flex; flex-direction: column; flex: 1; padding: 9px 8px 8px; }
.pf-body h3 { font-size: clamp(1.125rem, 1.4vw, 1.25rem); font-weight: 700; line-height: 1.35; }
.pf-body p { margin: 3px 0 7px; font-size: .875rem; line-height: 1.5; color: #49616a; }
.pf-foot { display: grid; gap: 8px; margin-top: auto; }
.pf-status {
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  min-height: 55px; padding: 8px 12px; border-radius: 11px;
  background: var(--teal); color: var(--offwhite); font-size: .8rem; line-height: 1.3;
}
.pf-measure { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pf-status strong { color: var(--mint); font-size: 1.12rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-track { height: 5px; background: #436365; border-radius: 4px; }
.pf-track span { display: block; height: 100%; background: var(--mint); border-radius: inherit; transform-origin: right; }
.pf-stage { flex-direction: row; align-items: center; justify-content: space-between; }
.pf-stage strong { font-size: .94rem; }
.pf-feature .pf-status { min-height: 0; margin: 13px 0 14px; padding: 0; background: transparent; }
.pf-feature .pf-status strong { font-size: 1.24rem; }
@media (hover: hover) {
  .pf-link:hover { background: #bdebdc; color: var(--navy); border-color: #6f9f92; }
}
@media (prefers-reduced-motion: no-preference) {
  .pf-visible.pf-card { animation: pf-arrive .42s var(--ease) backwards; animation-delay: calc(var(--pf-index) * 45ms); }
  .pf-visible .pf-track span { animation: pf-fill .65s var(--ease); }
  .pf-card, .pf-window { transition: transform .25s var(--ease); }
  .pf-link { transition: background-color .18s, border-color .18s, color .18s; }
  @keyframes pf-arrive { from { opacity: .72; translate: 0 7px; } }
  @keyframes pf-fill { from { transform: scaleX(0); } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pf-card:hover { transform: translateY(-2px); }
  .pf-card:hover .pf-window, .pf-feature:hover .pf-window { transform: scale(1.018); }
}
@media (max-width: 1099px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf { --pf-preview-h: 156px; }
}
@media (max-width: 639px) {
  .pf-grid, .pf-feature { grid-template-columns: minmax(0, 1fr); }
  .pf-feature-copy { padding: 18px; }
  .pf-feature .pf-preview { padding: 12px 18px 18px; }
  .pf-link { min-height: 44px; }
  .pf-actions .pf-link { flex: 1 1 auto; }
  .pf-body { padding: 12px 10px 10px; }
}
