/*
 * Product page (/product/): capability pipeline, request journey, product
 * screens and the trust boundary. Tokens and hp-* components come from public.css.
 */

/* ---------- Hero: the path business data takes through Studio ---------- */
.pd-map { --pd-gap: clamp(34px, 3vw, 64px); display: grid; grid-template-columns: minmax(0, 11.5em) minmax(0, 1fr) minmax(0, 11.5em); align-items: center; column-gap: var(--pd-gap); margin: clamp(44px, 4.2vw, 84px) 0 0; font-size: clamp(13px, .84vw, 16px); }
.pd-end { position: relative; display: grid; justify-items: center; gap: .3em; padding: 1.5em .9em; border: 1px dashed #cdd8d0; border-radius: 16px; background: rgba(255, 255, 255, .7); text-align: center; }
.pd-end__icon { display: grid; place-items: center; width: 2.7em; height: 2.7em; margin-bottom: .45em; border: 1px solid var(--hp-line); border-radius: 50%; color: var(--hp-icon); background: #fff; }
.pd-end__icon .hp-ico { font-size: 1.25em; }
.pd-end strong { color: var(--hp-ink); font-size: 1.02em; font-weight: 500; }
.pd-end small { color: var(--hp-muted); font-size: max(12px, .8em); line-height: 1.55; word-break: keep-all; }
.pd-wire { position: absolute; top: 50%; width: var(--pd-gap); height: 1px; background: #bccbc2; }
.pd-wire::after { content: ""; position: absolute; top: -3px; right: 0; width: 6px; height: 6px; border-top: 1px solid #9db3a7; border-right: 1px solid #9db3a7; transform: rotate(45deg); }
.pd-end--source .pd-wire { left: 100%; }
.pd-end--app .pd-wire { right: 100%; }

.pd-board { padding: 1.25em 1.35em 1.3em; border: 1px solid var(--hp-line); border-radius: 18px; background: #fff; box-shadow: var(--hp-shadow-float); }
.pd-board__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4em 1em; margin-bottom: 1.15em; padding-bottom: .95em; border-bottom: 1px solid var(--hp-line-soft); }
.pd-board__brand { margin: 0; color: var(--hp-ink); font-family: var(--hp-num); font-size: max(12px, .95em); font-weight: 600; letter-spacing: .02em; }
.pd-board__brand span { color: var(--hp-jade); }
.pd-board__note { margin: 0; color: var(--hp-faint); font-size: max(12px, .8em); }
.pd-nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.7em; margin: 0; padding: 0; list-style: none; }
.pd-node { position: relative; display: grid; align-content: start; gap: .3em; padding: 1.05em 1.1em 1.15em; border: 1px solid var(--hp-line); border-radius: 12px; background: #fcfdfb; }
.pd-node + .pd-node::before { content: ""; position: absolute; top: 2.15em; left: -1.7em; width: 1.7em; height: 1px; background: #c6d4cb; }
.pd-node + .pd-node::after { content: ""; position: absolute; top: calc(2.15em - 3px); left: -7px; width: 6px; height: 6px; border-top: 1px solid #9db3a7; border-right: 1px solid #9db3a7; transform: rotate(45deg); }
.pd-node__head { display: flex; align-items: center; gap: .65em; margin-bottom: .3em; }
.pd-node__icon { display: grid; flex: none; place-items: center; width: 2.2em; height: 2.2em; border: 1px solid #d5e5dc; border-radius: 50%; color: var(--hp-jade); background: #fff; }
.pd-node__icon .hp-ico { font-size: 1.05em; }
.pd-node strong { color: var(--hp-ink); font-size: 1.02em; font-weight: 500; }
.pd-node p { margin: 0; color: var(--hp-text); font-size: max(12px, .9em); line-height: 1.6; }
.pd-node small { color: var(--hp-faint); font-size: max(12px, .78em); line-height: 1.65; }
.pd-board__foot { display: flex; align-items: center; gap: .6em; margin: 1.15em 0 0; padding-top: 1em; border-top: 1px solid var(--hp-line-soft); color: var(--hp-muted); font-size: max(12px, .82em); }
.pd-board__foot .hp-ico { color: var(--hp-icon); font-size: 1.2em; }

/* ---------- Request journey ---------- */
.pd-track { position: relative; font-size: clamp(13px, .86vw, 16px); }
.pd-track__band { position: absolute; top: 0; bottom: 0; left: calc(100% / 6); right: calc(100% / 6); border: 1px solid #dde9e2; border-radius: 18px; background: #f6faf7; }
.pd-track__band span { position: absolute; top: 0; left: 50%; padding: 0 .9em; color: var(--hp-label); background: #fff; font-size: max(12px, .78em); letter-spacing: .14em; white-space: nowrap; transform: translate(-50%, -50%); }
.pd-steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.pd-steps::before { content: ""; position: absolute; top: calc(2.2em + 1.35em); left: calc(100% / 12); right: calc(100% / 12); height: 1px; background: #cfdcd4; }
.pd-step { position: relative; display: grid; justify-items: center; align-content: start; gap: .45em; padding: 2.2em 1.1em 2.3em; text-align: center; }
.pd-step__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 2.7em; height: 2.7em; margin-bottom: .55em; border: 1px solid var(--hp-line); border-radius: 50%; color: var(--hp-icon); background: #fff; }
.pd-step--studio .pd-step__icon { border-color: #b8d7ca; color: var(--hp-jade); }
.pd-step__icon .hp-ico { font-size: 1.2em; }
.pd-step strong { color: var(--hp-ink); font-size: 1.02em; font-weight: 500; }
.pd-step p { max-width: 13em; margin: 0; color: var(--hp-muted); font-size: max(12px, .86em); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- Product screens: each capture is cropped to the part that matters ---------- */
.pd-feature { --shot-max: calc(var(--w) * 1px); }
.pd-feature + .pd-feature { border-top: 1px solid var(--hp-line-soft); }
.pd-feature--white { background: #fff; }
.pd-feature--datasets { --x: 110; --y: 20; --w: 1380; --h: 590; }
.pd-feature--sync { --x: 306; --y: 271; --w: 1246; --h: 721; }
.pd-feature--search { --x: 306; --y: 305; --w: 1246; --h: 650; }
.pd-feature__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(16px, 3vw, 64px); max-width: var(--shot-max); margin: 0 auto clamp(28px, 2.6vw, 48px); }
.pd-feature__head > div { display: grid; justify-items: start; gap: clamp(10px, .9vw, 16px); }
.pd-feature__head .hp-lead { justify-self: end; max-width: 30em; }
.pd-shot { max-width: var(--shot-max); margin: 0 auto; }
.pd-shot__view { position: relative; display: block; overflow: hidden; aspect-ratio: var(--w) / var(--h); background: #f8faf6; }
.pd-shot__view img { position: absolute; top: 0; left: 0; width: calc(160000% / var(--w)); max-width: none; height: auto; transform: translate(calc(var(--x) * -100% / 1600), calc(var(--y) * -100% / 1000)); }
.pd-shot__view:focus-visible { outline: 2px solid #31866f; outline-offset: -2px; }
.pd-shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4em 1em; margin-top: .9em; color: var(--hp-faint); font-size: var(--hp-fs-label); line-height: 1.6; }
.pd-shot figcaption a { color: var(--hp-label); white-space: nowrap; }
.pd-shot figcaption a:hover { color: var(--hp-jade); }
.pd-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 48px); max-width: var(--shot-max); margin: clamp(24px, 2.4vw, 44px) auto 0; padding: 0; list-style: none; }
.pd-points li { display: grid; align-content: start; gap: .4em; padding-top: 1em; border-top: 1px solid var(--hp-line); }
.pd-points strong { color: var(--hp-ink); font-size: clamp(15px, .98vw, 18px); font-weight: 500; }
.pd-points p { margin: 0; color: var(--hp-muted); font-size: var(--hp-fs-small); line-height: 1.75; }

/* ---------- Trust boundary ---------- */
.pd-trust .hp-grid { --hp-cols: 4; }
.pd-trust .hp-grid > * { grid-template-columns: minmax(0, 1fr); row-gap: .55em; }
.pd-trust .hp-grid .hp-ico { grid-row: auto; margin-bottom: .45em; font-size: clamp(20px, 1.35vw, 25px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .pd-map { --pd-gap: 2.6em; grid-template-columns: minmax(0, 1fr); row-gap: var(--pd-gap); }
  .pd-end { grid-template-columns: auto minmax(0, 1fr); justify-items: start; justify-self: center; column-gap: .9em; row-gap: .1em; min-width: min(100%, 22em); padding: .9em 1.2em; text-align: left; }
  .pd-end__icon { grid-row: span 2; margin: 0; }
  .pd-end .pd-wire, .pd-end--source .pd-wire, .pd-end--app .pd-wire { top: auto; right: auto; left: 50%; width: 1px; height: var(--pd-gap); }
  .pd-end--source .pd-wire { top: 100%; }
  .pd-end--app .pd-wire { bottom: 100%; }
  .pd-wire::after { top: auto; right: -3px; bottom: 0; transform: rotate(135deg); }
  .pd-trust .hp-grid { --hp-cols: 2; }
}
@media (max-width: 900px) {
  .pd-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1em; }
  .pd-node + .pd-node::before, .pd-node + .pd-node::after { display: none; }
  .pd-track__band { display: none; }
  .pd-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pd-steps::before { top: 2.35em; bottom: 2.35em; left: 1.35em; right: auto; width: 1px; height: auto; }
  .pd-step { grid-template-columns: auto minmax(0, 1fr); justify-items: start; column-gap: 1.1em; row-gap: .2em; padding: 1em 0; text-align: left; }
  .pd-step__icon { grid-row: span 2; margin: 0; }
  .pd-step p { max-width: none; }
  .pd-step--studio strong::after { content: "Studio"; margin-left: .6em; padding: .05em .45em; border: 1px solid #cfe2d8; border-radius: 5px; color: var(--hp-label); font-family: var(--hp-num); font-size: max(12px, .7em); font-weight: 500; vertical-align: .14em; }
  .pd-feature__head { grid-template-columns: minmax(0, 1fr); }
  .pd-feature__head .hp-lead { justify-self: start; }
}
@media (max-width: 640px) {
  .pd-nodes { grid-template-columns: minmax(0, 1fr); }
  .pd-feature--datasets { --x: 110; --y: 90; --w: 700; --h: 520; }
  .pd-feature--sync { --x: 306; --y: 271; --w: 794; --h: 380; }
  .pd-feature--search { --x: 306; --y: 690; --w: 860; --h: 270; }
  .pd-points { grid-template-columns: minmax(0, 1fr); }
  .pd-trust .hp-grid { --hp-cols: 1; }
}
