/* The product pages (October 8), on the homepage's frame and type: Preslea's
   layout reference without its eyebrow (Hunter's rule: none), no boxes or rings,
   rounded product fields like the homepage cards, real product screens in them. */

.pp-head { padding: clamp(112px, 12cqw, 152px) 0 clamp(48px, 5cqw, 72px); }
.pp-head-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--pad); padding-inline: var(--pad); }
.pp-head-copy { display: grid; justify-items: start; gap: 20px; }
.pp-head-copy .headline { font-size: clamp(44px, 5.4cqw, 76px); }
.pp-head-copy .lead { max-width: 26em; }
.pp-head-copy .actions { margin-top: 8px; }

/* Until the header's motion takes it over (product.js), it waits hidden. */
html.pp-intro .pp-head-copy > *, html.pp-intro .pp-hero-visual { opacity: 0; }

/* A product field, rounded like the homepage cards, with the screen running off
   its lower right as in the showcase. */
.pp-visual { position: relative; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 24px; background: var(--card) center / cover no-repeat; clip-path: inset(0 round 24px); }
.pp-visual .product-window { position: absolute; left: 9%; top: 11%; width: 108%; height: auto; border-radius: 14px 0 0 0; }
.pp-visual > .ground-canvas { z-index: 0; }
.pp-visual .product-window, .pp-names span { z-index: 1; }
.pp-visual.is-phone .product-window { left: 8%; right: 8%; top: 8%; bottom: 8%; width: auto; aspect-ratio: auto; border-radius: 14px; background: var(--paper); }
.pp-visual img.product-image { object-fit: cover; object-position: top left; }
/* Several screens for one feature (Reporting, Preslea's four): tabs under its copy
   choose the screen, the chosen one filled. */
.pp-shot-tabs { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px; margin-top: 22px; } /* two by two at every width: the copy is never wide enough for four in a row */
.pp-shot-tabs button { min-height: 34px; padding: 0 15px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, var(--paper)); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.pp-shot-tabs button:hover { background: color-mix(in srgb, var(--ink) 11%, var(--paper)); }
.pp-shot-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.pp-shot-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pp-names { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 9%; }
.pp-names span { position: relative; padding: 9px 16px; border-radius: 999px; background: rgb(255 255 255 / .82); font-size: 14px; font-weight: 500; color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* "On this page" beside the features, divided by a frame column line. */
.pp-body { display: grid; grid-template-columns: calc(var(--col) * 3) minmax(0, 1fr); }
.pp-toc { align-self: start; padding: clamp(48px, 5cqw, 64px) var(--pad); }
.pp-toc p { font-size: 14px; color: var(--muted); }
.pp-toc ol { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; }
.pp-toc a { display: block; padding: 6px 0; font-size: 15px; color: var(--muted); transition: color .2s ease; }
.pp-toc a:hover, .pp-toc a[aria-current] { color: var(--ink); }
.pp-toc a[aria-current] { font-weight: 500; }
.pp-features { min-width: 0; border-left: 1px solid var(--line); }
.pp-features > * + * { border-top: 1px solid var(--line); }
.pp-features h2 { font-size: clamp(26px, 2.4cqw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.pp-features p, .pp-grid p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
[id] { scroll-margin-top: 112px; }

/* A feature with a screen: copy and screen side by side, alternating. */
.pp-feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); align-items: center; gap: var(--pad); padding: clamp(48px, 5cqw, 72px) var(--pad); }
.pp-feature.is-flipped .pp-feature-copy { order: 2; }
.pp-feature-copy { max-width: 24em; }

/* Features without a screen share a row of cells. */
.pp-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-cells.is-one { grid-template-columns: minmax(0, 1fr); }
.pp-cell { padding: clamp(40px, 4.4cqw, 60px) var(--pad); }
.pp-cells:not(.is-one) > .pp-cell:nth-child(2n) { border-left: 1px solid var(--line); }
.pp-cells > .pp-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
.pp-cells.is-one .pp-cell p { max-width: 36em; }

/* Integrations: her first one leads, the rest in a grid of cells. */
.pp-lead-integration { padding: clamp(56px, 6cqw, 88px) var(--pad); }
.pp-lead-integration .headline { font-size: clamp(32px, 3.6cqw, 48px); }
.pp-lead-integration .lead { max-width: 34em; margin-top: 18px; }
.pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pp-grid .pp-cell { padding: clamp(32px, 3.4cqw, 44px) var(--pad); }
.pp-grid .pp-cell h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.pp-grid .pp-cell p { font-size: 15.5px; margin-top: 10px; }
.pp-grid > .pp-cell:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.pp-grid > .pp-cell:nth-child(n + 4) { border-top: 1px solid var(--line); }

@media (max-width: 899px) {
  .pp-head-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-body { grid-template-columns: minmax(0, 1fr); }
  .pp-toc { display: none; }
  .pp-features { border-left: 0; border-top: 1px solid var(--line); }
  .pp-feature { grid-template-columns: minmax(0, 1fr); }
  .pp-feature.is-flipped .pp-feature-copy { order: 0; }
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-grid > .pp-cell:not(:nth-child(3n + 1)) { border-left: 0; }
  .pp-grid > .pp-cell:nth-child(2n) { border-left: 1px solid var(--line); }
  .pp-grid > .pp-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .pp-cells, .pp-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-cells:not(.is-one) > .pp-cell:nth-child(2n), .pp-grid > .pp-cell:nth-child(2n) { border-left: 0; }
  .pp-cells > .pp-cell + .pp-cell, .pp-grid > .pp-cell + .pp-cell { border-top: 1px solid var(--line); }
  .pp-visual { border-radius: 18px; clip-path: inset(0 round 18px); }
}
