/*
  /partners: the page for agencies that build AI agents for online stores.

  Four objects carry the page, each made in HTML, CSS and SVG: the agency's
  own report with the seal stamped on it, a white label diagram, Slack and
  Gmail as a client sees them, and the seal itself. Colours come from the
  tokens in site.css and keep their meanings: yellow is what the bot claimed,
  orange is what the store's own site says, red is a proven error, lemon is
  worth a look.

  Hidden entrance states sit under .pa-js, which partners.js sets only when
  motion is allowed. Without the script, or with reduced motion, every object
  is on the page in its finished state.
*/

.pa-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The agency's logo is a placeholder on purpose: a dashed frame says "your logo goes here". */
.pa-brand-mark { --s: 18px; position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); border-radius: 30%; border: 1.5px dashed currentColor; }
.pa-brand-mark::after { content: ""; position: absolute; inset: 26%; border-radius: 50%; background: currentColor; }
.pa-brand-mark.lg { --s: 34px; border-width: 1.8px; }

.pa-time { font-weight: 400; font-size: 12px; color: var(--faint); }
.pa-head { margin-top: 16px; max-width: 22.372em; }
.pa-pill-err { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: var(--r-xs); background: var(--error); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; }
.pa-tag { display: inline-flex; align-items: center; margin-right: 7px; padding: 2px 6px; border-radius: var(--r-xs); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 1px; line-height: 1.3; }
.pa-tag.err { background: var(--error); color: #fff; }
.pa-tag.look { background: var(--look-bg); color: var(--look-ink); box-shadow: inset 0 0 0 1px var(--look-line); }

/* Paper sheets are light in both themes, so the marks on them use the light values. */
.pa-sheet mark::before, .pa-finding mark::before { transform: scaleX(1); }
.pa-sheet mark.claim::before { background: color-mix(in srgb, var(--yellow) 60%, transparent); box-shadow: inset 0 -2px 0 var(--yellow-deep); }
.pa-sheet mark.rule::before { background: color-mix(in srgb, var(--orange) 18%, transparent); box-shadow: inset 0 -2px 0 var(--orange); }
.pa-sheet mark { color: var(--sheet-ink); }

/* ---------- Hero: the report, the seal, the Slack message and the email ---------- */

.pa-hero { padding-bottom: clamp(64px, 8vw, 112px); }
.pa-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.pa-hero .page-title { max-width: 9.87em; }
.pa-hero .lede { max-width: 30.498em; }
.pa-hero-note { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 13.5px; color: var(--mute); }
.pa-hero-note::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 1px; background: var(--ruby); transform: rotate(45deg); }

.pa-stage { position: relative; height: 580px; }
.pa-layer { position: absolute; }
.pa-l-report { left: 9%; top: 52px; width: min(404px, 66%); z-index: 1; }
.pa-l-mail { right: 0; top: 0; width: 304px; z-index: 3; }
.pa-l-slack { left: 0; bottom: 0; width: 322px; z-index: 2; }

.pa-sheet {
  position: relative; border-radius: var(--r-lg); background: var(--sheet); color: var(--sheet-ink); padding: 22px 24px 24px;
  border: 1px solid var(--sheet-line); box-shadow: 0 44px 80px -28px var(--dd-shadow), var(--lift-2);
}
.pa-sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--sheet-line); }
.pa-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.pa-sheet-kicker { font-size: 11px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sheet-mute); }
.pa-sheet-title { margin-top: 16px; font-size: 25px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.pa-sheet-meta { margin-top: 4px; font-size: 12.5px; color: var(--sheet-mute); }
.pa-tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pa-tally div { padding: 9px 11px; border-radius: var(--r-md); border: 1px solid var(--sheet-line); background: color-mix(in srgb, var(--sheet), var(--canvas) 45%); }
.pa-tally dt { font-size: 11px; color: var(--sheet-mute); white-space: nowrap; }
.pa-tally dd { margin-top: 2px; font-size: 26px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.pa-tally .is-err dd { color: var(--error); }
.pa-tally .is-look dd { color: var(--lemon); }
.pa-find { display: grid; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sheet-line); }
.pa-find-head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--sheet-mute); }
.pa-q, .pa-src { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; font-size: 13.5px; line-height: 1.45; isolation: isolate; }
.pa-src > span:last-child { font-family: var(--mono); font-size: 12.5px; }
.pa-who { padding-top: 1px; font-family: var(--font); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sheet-mute); }
.pa-fix { padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--sheet-line); font-size: 13px; line-height: 1.4; }
.pa-fix b { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-press); }
.pa-stamp { position: absolute; right: -20px; bottom: -34px; width: 118px; height: 118px; transform: rotate(-11deg); filter: drop-shadow(0 8px 12px var(--dd-shadow)); }

.pa-card { border-radius: var(--r-lg); background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 34px 64px -22px var(--dd-shadow), var(--lift-2); }
.pa-slackcard { padding: 12px 14px 14px; }
.pa-chan { display: flex; align-items: center; gap: 4px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.pa-chan span { color: var(--faint); font-weight: 400; }
.pa-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.pa-ava { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-md); background: var(--stripe-ink); color: #fff; }
.pa-ava .pa-brand-mark { --s: 16px; }
.pa-ava-round { border-radius: 50%; }
.pa-msg-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pa-msg-name .pa-time { margin-left: 6px; }
.pa-app { display: inline-block; margin-left: 6px; padding: 1px 4px; border-radius: 3px; background: var(--surface-2); color: var(--mute); font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }
.pa-msg-text { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.pa-msg-text b { color: var(--ink); font-weight: 500; }
.pa-chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 4px 10px 4px 5px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.pa-chip svg { width: 20px; height: 20px; }

.pa-mailcard { padding: 16px 16px 14px; }
.pa-mail-subj { font-size: 15.5px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.pa-mail-from { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 12px; }
.pa-mail-from .pa-ava { width: 30px; height: 30px; }
.pa-mail-from .pa-brand-mark { --s: 14px; }
.pa-mail-from p { font-size: 13px; line-height: 1.3; min-width: 0; }
.pa-mail-from b { display: block; font-weight: 600; }
.pa-mail-from p span { color: var(--mute); font-size: 12px; }
.pa-mail-text { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.pa-file { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 10px 6px 6px; border-radius: var(--r-md); border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--ink-2); }
.pa-file-ico { display: grid; place-items: center; width: 26px; height: 20px; border-radius: 3px; background: var(--stripe-ink); color: #fff; font-size: 8.5px; font-weight: 600; letter-spacing: 0.04em; }

/* One by one: the report, the seal pressed onto it, then the same report as a Slack message and as an email. */
.pa-js .pa-stage .pa-layer { transition: opacity 0.8s var(--ease), transform 1.1s var(--ease); }
.pa-js .pa-stage:not(.is-in) .pa-l-report { opacity: 0; transform: translateY(28px) scale(0.98); }
.pa-js .pa-stage .pa-l-slack { transition-delay: 0.95s; }
.pa-js .pa-stage:not(.is-in) .pa-l-slack { opacity: 0; transform: translate(-28px, 18px); }
.pa-js .pa-stage .pa-l-mail { transition-delay: 1.25s; }
.pa-js .pa-stage:not(.is-in) .pa-l-mail { opacity: 0; transform: translate(28px, 14px); }
.pa-js .pa-stage .pa-stamp { transition: opacity 0.25s var(--ease-ui) 0.6s, transform 0.55s var(--ease) 0.6s; }
.pa-js .pa-stage:not(.is-in) .pa-stamp { opacity: 0; transform: scale(1.7) rotate(-32deg); }
.pa-js .pa-stage mark::before { transition: transform 0.7s var(--ease) 0.45s; }
.pa-js .pa-stage mark.rule::before { transition-delay: 0.6s; }
.pa-js .pa-stage:not(.is-in) mark::before { transform: scaleX(0); }

/* ---------- White label diagram ---------- */

.pa-flow {
  position: relative; padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); border-radius: var(--r-md);
  background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 16px 16px;
}
.pa-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.pa-flow-grid {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: ". . site ." "agency stores check report" "out out . .";
  column-gap: clamp(48px, 6vw, 96px); row-gap: 44px;
}
.pa-node {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--lift-1); color: var(--ink);
}
/* The ring marks what the current step is about. */
.pa-node::after { content: ""; position: absolute; inset: -5px; border-radius: 12px; border: 1px solid var(--ghost-border); box-shadow: 0 0 0 4px var(--accent-bg); opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease-ui); }
.pa-node-text { min-width: 0; }
.pa-node-text b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.pa-node-text small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: var(--mute); }
.pa-node-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r-md); background: var(--surface-2); }
.pa-node-ico svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pa-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.pa-dot.o { background: var(--orange); }

.pa-n-agency { grid-area: agency; justify-self: start; gap: 12px; padding: 14px 16px; }
.pa-stores { grid-area: stores; display: grid; gap: 14px; }
.pa-n-site { grid-area: site; justify-self: center; padding: 9px 13px; }
.pa-n-check {
  grid-area: check; justify-self: center; flex-direction: column; justify-content: center; gap: 2px; width: 164px; height: 164px;
  border-radius: var(--r-lg); background: var(--surface-2); text-align: center; box-shadow: 0 0 0 8px var(--accent-bg), var(--lift-2);
}
.pa-n-check .logo-mark { width: 30px; height: 30px; margin-bottom: 6px; }
.pa-n-check b { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.pa-n-check small { font-size: 12.5px; color: var(--mute); }
.pa-ro { margin-top: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.pa-n-report {
  grid-area: report; justify-self: center; flex-direction: column; align-items: stretch; gap: 7px; width: 184px; padding: 14px 14px 16px;
  background: var(--sheet); color: var(--sheet-ink); border-color: var(--sheet-line);
}
.pa-mini-top { display: flex; align-items: center; gap: 7px; padding-bottom: 8px; margin-bottom: 2px; border-bottom: 1px solid var(--sheet-line); font-size: 12.5px; font-weight: 600; }
.pa-mini-top .pa-brand-mark { --s: 14px; }
.pa-mini-line { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--sheet-mute); }
.pa-mini-line i { width: 7px; height: 7px; border-radius: 2px; background: var(--sheet-line); }
.pa-mini-line.err i { background: var(--error); }
.pa-mini-line.look i { background: var(--yellow-deep); }
.pa-mini-seal { position: absolute; right: -16px; bottom: -18px; width: 54px; height: 54px; transform: rotate(-10deg); filter: drop-shadow(0 4px 6px var(--dd-shadow)); }
.pa-n-out { grid-area: out; display: grid; grid-template-columns: subgrid; align-items: center; padding: 10px 0; }
.pa-out-half { display: flex; align-items: center; gap: 10px; justify-self: center; padding-inline: 14px; }
.pa-out-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r-md); background: var(--accent-bg); }
.pa-out-ico svg { width: 17px; height: 17px; fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.pa-w { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pa-w-base { stroke: var(--line-strong); stroke-dasharray: 2 5; }
.pa-w-lit, .pa-w-tip { opacity: 0; transition: opacity 0.5s var(--ease-ui); }
.pa-w-lit.is-on, .pa-w-tip.is-on { opacity: 1; }
.pa-w-tip { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.k-build { stroke: var(--ink-2); }
.k-claim { stroke: var(--yellow-deep); }
.k-rule { stroke: var(--orange); }
.k-sheet { stroke: var(--ruby); }

/* What travels on a wire says what it is: a bot's claim, a line of the store's site, the report. */
.pa-pk { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.pa-pk.pk-build { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.pa-pk.pk-claim { width: 15px; height: 10px; border-radius: 5px 5px 5px 2px; background: var(--yellow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 28%, transparent); }
.pa-pk.pk-rule { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.pa-pk.pk-sheet { width: 13px; height: 16px; border-radius: 2px; background: var(--sheet); border: 1px solid var(--sheet-line); box-shadow: inset 0 3px 0 var(--ruby), var(--lift-1); }

.pa-wlabel {
  position: absolute; left: 0; top: 0; z-index: 3; padding: 2px 7px; border-radius: var(--r-xs); background: var(--bg); color: var(--mute);
  font-family: var(--mono); font-size: 11px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease-ui);
}
.pa-wlabel.is-placed { opacity: 1; }

/* The step on show. Others stay readable; only the one in play is lit. */
.pa-flow.is-live .pa-node { transition: opacity 0.45s var(--ease-ui); }
.pa-flow.is-live .pa-node:not(.is-on) { opacity: 0.5; }
.pa-flow.is-live .pa-node.is-on::after { opacity: 1; }
.pa-flow.is-live .pa-n-report.is-on::after { border-color: var(--sheet-line); }
/* The report is made in step 3: before that it is a blank sheet; then it fills in and is stamped. */
.pa-n-report > * { transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.pa-flow.is-live:is([data-step="1"], [data-step="2"]) .pa-n-report > * { opacity: 0.18; }
.pa-flow.is-live:is([data-step="1"], [data-step="2"]) .pa-mini-seal { opacity: 0; transform: scale(1.5) rotate(-30deg); }
.pa-flow.is-live[data-step="3"] .pa-n-report > :nth-child(2) { transition-delay: 0.25s; }
.pa-flow.is-live[data-step="3"] .pa-n-report > :nth-child(3) { transition-delay: 0.35s; }
.pa-flow.is-live[data-step="3"] .pa-n-report > :nth-child(4) { transition-delay: 0.45s; }
.pa-flow.is-live[data-step="3"] .pa-mini-seal { transition: opacity 0.25s var(--ease-ui) 0.9s, transform 0.55s var(--ease) 0.9s; }

.pa-js .pa-flow .pa-flow-grid > *, .pa-js .pa-flow .pa-stores > * { transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.pa-js .pa-flow:not(.is-in) .pa-flow-grid > *, .pa-js .pa-flow:not(.is-in) .pa-stores > * { opacity: 0; transform: translateY(14px); }
.pa-js .pa-flow .pa-stores > :nth-child(2) { transition-delay: 0.06s; }
.pa-js .pa-flow .pa-stores > :nth-child(3) { transition-delay: 0.12s; }
.pa-js .pa-flow .pa-n-site, .pa-js .pa-flow .pa-n-check { transition-delay: 0.18s; }
.pa-js .pa-flow .pa-n-report { transition-delay: 0.26s; }
.pa-js .pa-flow .pa-n-out { transition-delay: 0.34s; }
.pa-js .pa-flow .pa-wires { transition: opacity 0.8s var(--ease-ui) 0.5s; }
.pa-js .pa-flow:not(.is-in) .pa-wires { opacity: 0; }

.pa-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--line); }
.pa-steps li { display: flex; }
.pa-step {
  position: relative; display: grid; align-content: start; gap: 6px; width: 100%; padding: 22px 20px 6px 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.pa-steps li + li .pa-step { padding-left: 18px; border-left: 1px solid var(--line); }
.pa-step-bar { position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--ruby); transform-origin: left; transform: scaleX(0); }
.pa-steps li + li .pa-step-bar { left: -1px; }
.pa-step[aria-current="step"] .pa-step-bar { transform: scaleX(1); transition: transform var(--step-ms, 3800ms) linear; }
.pa-step-n { font-size: 12.5px; color: var(--faint); }
.pa-step[aria-current="step"] .pa-step-n { color: var(--accent-ink); }
.pa-step-t { font-size: 18px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.pa-step-d { font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.pa-step:focus-visible { outline-offset: 4px; }
/* Still: no step is singled out, the bars are plain hairlines. */
.pa-steps.is-still .pa-step { cursor: default; }

/* ---------- Slack and Gmail ---------- */

.pa-apps { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pa-app-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.pa-app-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ruby); }
.pa-app-dot.mail { background: var(--ink-2); }
.pa-win { overflow: hidden; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 34px 70px -30px var(--dd-shadow), var(--lift-2); color: var(--ink); }

.pa-slack { display: grid; grid-template-columns: 172px minmax(0, 1fr); height: 392px; }
.pa-slack-side { padding: 14px 10px; background: var(--band-dark-bg); color: var(--ink); }
.pa-ws { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pa-side-head { padding: 4px 8px; font-size: 12px; color: var(--mute); }
.pa-side-ch { display: flex; gap: 6px; padding: 4px 8px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-side-ch span { opacity: 0.7; }
.pa-side-ch.is-active { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.pa-slack-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pa-slack-head { display: flex; gap: 4px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.pa-slack-head span { color: var(--faint); font-weight: 400; }
.pa-feed {
  position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6px;
  -webkit-mask-image: linear-gradient(transparent, #000 56px); mask-image: linear-gradient(transparent, #000 56px);
}
.pa-sm { position: relative; flex: none; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 9px 16px; transition: transform 0.6s var(--ease); }
.pa-sm-body { min-width: 0; }
/* Slack's "new" line, so the eye finds the alert that just came in. */
.pa-sm.is-latest { margin-top: 12px; }
.pa-sm.is-latest::before { content: ""; position: absolute; left: 16px; right: 16px; top: -6px; height: 1px; background: var(--ghost-border); }
.pa-sm.is-latest::after { content: "New"; position: absolute; right: 22px; top: -13px; padding: 0 5px; background: var(--panel); color: var(--accent-ink); font-size: 10.5px; font-weight: 600; line-height: 14px; }
.pa-quote { margin-top: 6px; padding: 1px 0 1px 10px; border-left: 3px solid var(--orange); font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.pa-compose { margin: 4px 16px 14px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line-strong); font-size: 13px; color: var(--faint); }

.pa-gmail { display: flex; flex-direction: column; height: 392px; }
.pa-gm-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.pa-gm-menu { display: grid; gap: 3px; }
.pa-gm-menu i { display: block; width: 15px; height: 1.6px; border-radius: 1px; background: var(--ink-2); }
.pa-gm-search { flex: 1; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: 13px; color: var(--faint); }
.pa-gm-me { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--stripe-ink-2); color: #fff; font-size: 12.5px; font-weight: 600; }
.pa-gm-tabs { display: flex; border-bottom: 1px solid var(--line); font-size: 13px; }
.pa-gm-tabs span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; color: var(--mute); }
.pa-gm-tabs .is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.pa-gm-new { padding: 1px 7px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-ink); font-size: 10.5px; font-weight: 600; }
.pa-gm-new.is-pop { animation: pa-pop 0.5s var(--ease) backwards; }
@keyframes pa-pop { from { transform: scale(1.35); } }
.pa-inbox { flex: 1; min-height: 0; overflow: hidden; }
.pa-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--mute); transition: transform 0.6s var(--ease);
}
.pa-row.is-unread { background: var(--panel); color: var(--ink); }
.pa-row-from { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-row.is-unread .pa-row-from, .pa-row.is-unread .pa-row-main b { font-weight: 600; }
.pa-row-main { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-row-main b { margin-right: 6px; font-weight: 400; color: var(--ink-2); }
.pa-row.is-unread .pa-row-main b { color: var(--ink); }
.pa-row-main b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 2px; background: var(--line-strong); vertical-align: 1px; }
.pa-row[data-kind="err"] .pa-row-main b::before { background: var(--error); }
.pa-row[data-kind="look"] .pa-row-main b::before { background: var(--yellow-deep); }
.pa-row-time { font-size: 12px; white-space: nowrap; }
.pa-row.is-unread .pa-row-time { font-weight: 600; }

.pa-channels .pillars { margin-top: clamp(40px, 5vw, 56px); }

/* An alert arriving: the newest rises into Slack and drops into the top of the inbox. */
.pa-feed > .is-new { animation: pa-arrive 0.7s var(--ease) backwards; }
.pa-inbox > .is-new { animation: pa-drop 0.6s var(--ease) backwards; }
@keyframes pa-arrive { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes pa-drop { from { opacity: 0; transform: translateY(-12px); } }
.pa-js .pa-apps .pa-appbox { transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
.pa-js .pa-apps .pa-appbox + .pa-appbox { transition-delay: 0.12s; }
.pa-js .pa-apps:not(.is-in) .pa-appbox { opacity: 0; transform: translateY(24px); }

/* ---------- The seal ---------- */

.pa-seal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pa-seal-stage { display: grid; place-items: center; min-height: 460px; perspective: 1100px; }
.pa-seal3d { position: relative; width: min(380px, 100%); aspect-ratio: 1; }
.pa-seal-obj { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.pa-seal-l { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Depth: a darker rim behind the face, the ring and the mark raised above it. */
.pa-seal-edge { transform: translateZ(-7px); filter: brightness(0.62); }
.pa-seal-sheen { inset: 7%; border-radius: 50%; overflow: hidden; transform: translateZ(1px); pointer-events: none; }
.pa-seal-sheen i { position: absolute; inset: -60%; background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, 0.7) 49%, rgba(255, 255, 255, 0.15) 53%, transparent 60%); transform: translate(-18%, 6%); }
.pa-seal-ring { transform: translateZ(12px); }
.pa-seal-core { transform: translateZ(26px); filter: drop-shadow(0 3px 2px rgba(13, 37, 61, 0.18)); }
.pa-seal-shadow { position: absolute; left: 12%; right: 12%; bottom: -9%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); filter: blur(10px); }
.pa-sealband .pa-head { max-width: 17.108em; }
.pa-means { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.pa-means h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.005em; }
.pa-list { display: grid; gap: 12px; margin-top: 16px; }
.pa-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; color: var(--mute); }
.pa-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-bg); }
.pa-list li::after {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.4 2.7 2.7L14.2 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.4 2.7 2.7L14.2 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.pa-list.no li::before { background: var(--surface-2); }
.pa-list.no li::after {
  background: var(--mute);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m7 7 6 6m0-6-6 6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m7 7 6 6m0-6-6 6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}
.pa-js .pa-seal3d { transition: opacity 0.6s var(--ease-ui); }
.pa-js .pa-seal3d:not(.is-in) { opacity: 0; }

/* ---------- The photograph, with the finding on the screen they are looking at ---------- */

.pa-photo-stage { position: relative; padding-bottom: 64px; }
.pa-photo { position: relative; overflow: hidden; aspect-ratio: 2 / 1; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: var(--lift-2); }
.pa-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.1); }
/* A veil on the right lifts the card off a busy background without hiding the people. */
.pa-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 52%, rgba(13, 37, 61, 0.28) 100%); }
.pa-finding {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: 0; z-index: 2; width: min(404px, 40%); display: grid; gap: 11px; padding: 18px 18px 16px;
  border-radius: var(--r-lg); background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.35), var(--lift-2);
}
.pa-fd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.pa-fd-store { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.pa-fd-store .pa-brand-mark { --s: 15px; }
.pa-fd-tag { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); }
.pa-fd-row { padding: 9px 12px; border-radius: var(--r-md); isolation: isolate; }
.pa-fd-row.bot { background: var(--surface); box-shadow: inset 3px 0 0 var(--claim-line); }
.pa-fd-row.site { background: var(--rule-bg); box-shadow: inset 3px 0 0 var(--orange); }
.pa-fd-k { font-size: 11.5px; color: var(--mute); }
.pa-fd-v { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.pa-fd-v.mono { font-family: var(--mono); font-size: 13px; }
.pa-fd-why { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pa-fd-fix { padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line-strong); font-size: 14px; line-height: 1.45; color: var(--ink); }
.pa-fd-fixlabel { margin-bottom: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.pa-fd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pa-fd-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); }
.pa-fd-status svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa-fd-seal { width: 52px; height: 52px; margin: -10px -4px -8px 0; transform: rotate(-9deg); filter: drop-shadow(0 4px 6px var(--dd-shadow)); }
.pa-finding mark { color: var(--ink); }

/* The card lands, the bot's words are marked, then the store's line, then the verdict and the stamp. */
.pa-js .pa-finding { transition: opacity 0.8s var(--ease) 0.15s, transform 1s var(--ease) 0.15s; }
.pa-js .pa-photo-stage:not(.is-in) .pa-finding { opacity: 0; transform: translateY(32px); }
.pa-js .pa-finding mark::before { transition: transform 0.7s var(--ease) 0.75s; }
.pa-js .pa-finding .pa-fd-row.site mark::before { transition-delay: 1.05s; }
.pa-js .pa-photo-stage:not(.is-in) .pa-finding mark::before { transform: scaleX(0); }
.pa-js .pa-finding :is(.pa-fd-why, .pa-fd-fix, .pa-fd-status) { transition: opacity 0.6s var(--ease) 1.3s, transform 0.8s var(--ease) 1.3s; }
.pa-js .pa-finding .pa-fd-status { transition-delay: 1.7s; }
.pa-js .pa-photo-stage:not(.is-in) .pa-finding :is(.pa-fd-why, .pa-fd-fix, .pa-fd-status) { opacity: 0; transform: translateY(8px); }
.pa-js .pa-finding .pa-fd-seal { transition: opacity 0.25s var(--ease-ui) 1.8s, transform 0.55s var(--ease) 1.8s; }
.pa-js .pa-photo-stage:not(.is-in) .pa-finding .pa-fd-seal { opacity: 0; transform: scale(1.7) rotate(-34deg); }

.pa-faq { margin-top: 28px; }

/* Scrolling moves the photograph a little behind its frame, and the card in front a little more. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pa-photo img { animation: pa-pan linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .pa-finding { animation: pa-float linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  }
}
@keyframes pa-pan { from { transform: scale(1.1) translateY(-3.5%); } to { transform: scale(1.1) translateY(3.5%); } }
@keyframes pa-float { from { translate: 0 56px; } to { translate: 0 0; } }

/* ---------- Pointer only ---------- */

@media (hover: hover) and (pointer: fine) {
  .pa-step:hover .pa-step-t { color: var(--accent-ink); }
  .pa-node { transition: translate 0.25s var(--ease-ui); }
  .pa-node:hover { translate: 0 -2px; }
}

/* ---------- Breakpoints ---------- */

@media (max-width: 1199px) {
  .pa-slack { grid-template-columns: 148px minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  .pa-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .pa-hero .page-title { max-width: 11.844em; }
  .pa-stage { width: min(100%, 640px); margin-inline: auto; }

  /* The diagram turns to run top to bottom. */
  .pa-flow-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "agency agency agency" "stores stores stores" ". check site" "report report report" "out out out";
    column-gap: 20px; row-gap: 48px; justify-items: center;
  }
  .pa-n-agency { justify-self: center; }
  .pa-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 600px); gap: 12px; }
  .pa-n-store { flex-direction: column; align-items: center; text-align: center; padding: 12px 10px; }
  .pa-n-site { justify-self: start; }
  .pa-n-out { display: flex; gap: 8px; padding: 10px 12px; }
  .pa-out-half { padding-inline: 4px; }
  .pa-wlabel { display: none; }
  .pa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .pa-steps li:nth-child(3) .pa-step { padding-left: 0; border-left: 0; }
  .pa-steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .pa-apps { grid-template-columns: 1fr; }
  .pa-seal-grid { grid-template-columns: 1fr; }
  .pa-seal-stage { min-height: 0; padding-block: 16px 32px; }
  .pa-seal3d { width: min(320px, 78%); }
  .pa-finding { width: min(404px, 52%); }
}

@media (max-width: 767px) {
  /* The hero objects stack, each overlapping the one before, in reading order. */
  .pa-stage { height: auto; display: grid; padding-bottom: 8px; }
  .pa-layer { position: relative; inset: auto; width: auto; }
  .pa-l-report { margin-right: 20px; }
  .pa-l-mail { margin: -48px 0 0 22%; }
  .pa-l-slack { order: 3; margin: -28px 14% 0 0; }
  .pa-stamp { right: -12px; bottom: auto; top: 120px; width: 92px; height: 92px; }
  .pa-sheet { padding: 18px 18px 20px; }
  .pa-sheet-title { font-size: 22px; }
  .pa-tally dd { font-size: 22px; }

  .pa-flow { padding: 24px 0; }
  .pa-flow-grid { row-gap: 40px; column-gap: 10px; }
  .pa-stores { gap: 8px; }
  .pa-n-store { padding: 10px 6px; }
  .pa-n-store .pa-node-text b { font-size: 13px; }
  .pa-n-store .pa-node-text small { font-size: 11.5px; }
  .pa-n-check { width: 132px; height: 132px; }
  .pa-n-site { padding: 8px 9px; gap: 7px; }
  .pa-n-site .pa-node-text b { font-size: 12.5px; }
  .pa-n-site .pa-node-text small { font-size: 11px; }
  .pa-n-out { width: 100%; justify-content: space-around; }
  .pa-n-out .pa-node-text b { font-size: 13.5px; }
  .pa-steps { grid-template-columns: 1fr; }
  .pa-steps li + li .pa-step { padding-left: 0; border-left: 0; }
  .pa-steps li + li { border-top: 1px solid var(--line); }

  .pa-slack { grid-template-columns: 1fr; height: 400px; }
  .pa-slack-side { display: none; }
  .pa-gmail { height: 420px; }
  .pa-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "from time" "main main"; row-gap: 3px; }
  .pa-row-from { grid-area: from; }
  .pa-row-time { grid-area: time; }
  .pa-row-main { grid-area: main; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .pa-row-main b { display: block; margin: 0; }

  .pa-means { grid-template-columns: 1fr; gap: 28px; }

  .pa-photo-stage { padding-bottom: 0; }
  .pa-photo { aspect-ratio: 4 / 3; }
  .pa-photo img { object-position: 38% 40%; }
  .pa-photo::after { display: none; }
  .pa-finding { position: relative; right: auto; width: auto; margin: -44px 12px 0; }
}
