/* ==========================================================================
   Product pages — shared parts (Shield 0:5108 is the reference frame; AI
   Gateway, Audit Vault and MCP Tools use the same hero, FAQ and migrate CTA).
   Loaded after style.css.
   ========================================================================== */

/* ---- Hero ─ 0:5109 ----
   Copy sits on the nav's left edge; the slab art is a 1440 × 840 canvas at
   Figma coordinates, scaled by --pk (product.js: viewport / 1440, max 1). */
.pr-hero {
  --pk: 1;
  height: 840px;
  overflow: hidden;
}
.pr-hero__art { position: absolute; inset: 0; pointer-events: none; }
.pr-hero__canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 840px;
  margin-left: -720px;
  transform: scale(var(--pk));
  transform-origin: 50% 0;
}
.pr-d, .pr-m { position: absolute; inset: 0; }
.pr-hero__mart { display: none; }

/* The exported art trees: every wrapper centres its child, as in Figma. */
.sl { position: absolute; display: flex; align-items: center; justify-content: center; }
.sl > * { flex: none; }
.sl--cq { container-type: size; }
.sl-box { position: relative; }
.sl-clip { overflow: hidden; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.fill--w { inset: 0 auto auto 0; }

.pr-hero__inner { position: relative; max-width: 1440px; height: 100%; margin: 0 auto; padding: 452px 80px 0; }
.pr-hero__copy { display: flex; flex-direction: column; align-items: flex-start; width: 650px; }
.pr-hero .chip { margin-bottom: 36px; }
.pr-hero__title {
  margin-bottom: 32px;
  font-size: 48px;
  font-weight: 600;
  font-variation-settings: "opsz" 31;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.pr-hero__sub { margin-bottom: 36px; font-size: 15px; line-height: 1.3; color: var(--fg-1); }
.pr-dim { color: #b7b7b7; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pr-hero__btns { display: flex; gap: 11px; }

/* ---- Migrate CTA ─ 0:5429 ----
   Sits on the footer's 1296 rails. Its art and the left fade stay under the
   page grain (the frame's flat #101010 fade would otherwise read as a
   grain-free patch); copy and slab lift above it. */
.pr-cta { --cz: 1; }
.pr-cta > .pr-cta__box { z-index: auto; }
.pr-cta__box {
  position: relative;
  width: min(1296px, 100%);
  height: 362px;
  margin: 0 auto;
  overflow: hidden;
  border-inline: 1px solid var(--hairline);
}
.pr-cta__art { position: absolute; inset: 0; pointer-events: none; }
.pr-cta__grid {
  position: absolute;
  left: 41px;
  top: -389px;
  width: 1906.523px;
  height: 1140.704px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pr-cta__grid img { flex: none; width: 1839.884px; height: 1014.065px; max-width: none; object-fit: cover; rotate: 4.02deg; }
.pr-cta__fade {
  position: absolute;
  left: -1px;
  top: 0;
  width: 1296px;
  height: 394px;
  background: linear-gradient(to left, rgb(16 16 16 / 0), #101010 50.962%);
}
.pr-cta__slab { position: absolute; z-index: 1; left: 827.93px; top: 101.14px; width: 316.106px; height: 154.348px; max-width: none; }
.pr-cta__copy {
  position: absolute;
  z-index: 1;
  left: 55px;
  top: 50%;
  width: 700px;
  margin-top: .5px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}
/* "Bold" in the frame; its rendered width matches DM Sans 600 at opsz 40 */
.pr-cta__title { font-size: 48px; font-weight: 600; font-variation-settings: "opsz" 40; line-height: normal; color: #f2f0ed; }
.pr-cta__btns { display: flex; gap: 11px; }

@supports (text-box: trim-both cap alphabetic) {
  @media (min-width: 1000px) { .pr-hero__title { text-box: trim-both cap alphabetic; } }
}

/* ---- Responsive ---- */
@media (max-width: 1300px) {
  .pr-hero__inner { padding-inline: var(--gutter); }
}
/* 1000–1295: the CTA box zooms as a unit so copy and slab keep their spacing */
@media (max-width: 1295px) and (min-width: 1000px) {
  .pr-cta__box { zoom: var(--cz); width: 1296px; }
}

/* < 1000: mobile frame 0:7008 / 0:7203 */
@media (max-width: 999px) {
  .pr-hero { height: auto; padding: 56px 0; }
  .pr-hero__art { position: relative; inset: auto; width: min(350px, 100% - 40px); height: 306px; margin: 0 auto 32px; }
  .pr-hero__canvas { display: none; }
  .pr-hero__mart { display: block; position: absolute; left: 0; top: 0; width: 350px; height: 306px; }
  .pr-hero__inner { width: min(350px, 100% - 40px); height: auto; padding: 0; }
  .pr-hero__copy { width: auto; }
  .pr-hero .chip { height: 32px; margin-bottom: 28px; }
  .pr-hero__title { margin-bottom: 16px; font-size: 32px; line-height: 1.2; letter-spacing: 0; }
  .pr-hero__sub { margin-bottom: 32px; font-size: 13px; line-height: 1.4; color: var(--fg-2); }
  .pr-hero__btns { align-self: stretch; gap: 12px; }
  .pr-hero__btns .btn { flex: 1 1 0; height: auto; padding: 12px 0; font-size: 13px; line-height: normal; }

  .pr-cta__box { width: min(560px, 100% - 40px); height: 456px; border: 1px solid var(--hairline); border-top: 0; background: #101010; }
  .pr-cta__grid { left: -479px; top: -283px; width: 1305.329px; height: 781px; }
  .pr-cta__grid img { width: 1259.704px; height: 694.295px; }
  .pr-cta__fade { left: -1px; top: 98px; width: calc(100% + 2px); height: 358px; background: linear-gradient(to bottom, rgb(16 16 16 / 0), #101010 50.962%); }
  .pr-cta__slab { left: 59.78px; top: 52.58px; width: 216.426px; height: 105.677px; }
  .pr-cta__copy { left: 19px; right: 19px; top: auto; bottom: 23px; width: auto; margin: 0; transform: none; gap: 24px; }
  .pr-cta__title { font-size: 24px; font-weight: 600; font-variation-settings: "opsz" 24; line-height: 1.2; color: #fff; }
  .pr-cta__btns { flex-direction: column; align-self: stretch; gap: 12px; }
  .pr-cta__btns .btn { height: auto; padding: 12px 24px; font-size: 13px; line-height: normal; }
}
