/* Product pages under /imessage-api (CRM, lead follow-up, and the pages that follow them).
   Loads after the homepage stack and reuses its tokens, buttons, plan tiles and FAQ.
   Everything here is scoped to .pg so it cannot touch the homepage. The phone itself (frame, tokens, thread, bubbles) lives in css/phone-frame.css, loaded before this file.
   Motion is transform and opacity only, plays once, and is off for reduced motion. */

.pg {
  --pg-ink: var(--ink, #17140d);
  --pg-ink-2: var(--ink-2, #57534a);
  --pg-ink-3: var(--ink-3, #948f84);
  --pg-line: var(--hairline, rgba(23, 20, 13, .1));
  --pg-blue: var(--imsg-blue, #007aff);
  --pg-blue-deep: var(--imsg-blue-deep, #0062cc);
  --pg-r: 20px;
  /* the phone and the CRM card keep iOS and product colours in both themes */
  --pg-card-bg: #fff; --pg-card-line: rgba(16, 20, 32, .1); --pg-card-ink: #17140d; --pg-card-ink-2: #57534a;
  --pg-chip-bg: color-mix(in srgb, var(--pg-blue) 11%, transparent);
  --pg-chip-ink: #0a58c9;
  --pg-code-bg: #101318; --pg-code-ink: #dde3ee; --pg-code-dim: #8c96a8;
}
[data-theme="dark"] .pg {
  --pg-card-bg: #1b1915; --pg-card-line: rgba(255, 255, 255, .12); --pg-card-ink: #f3f0e9; --pg-card-ink-2: #b8b3a8;
  --pg-chip-ink: #a8c9ff;
  --pg-code-bg: #0a0c10;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pg {
    --pg-card-bg: #1b1915; --pg-card-line: rgba(255, 255, 255, .12); --pg-card-ink: #f3f0e9; --pg-card-ink-2: #b8b3a8;
    --pg-chip-ink: #a8c9ff;
    --pg-code-bg: #0a0c10;
  }
}

/* ---------- shared bits ---------- */
.pg code {
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: .88em;
  background: var(--surface-2); border: 1px solid var(--pg-line); border-radius: 6px; padding: .08em .38em;
}
.pg .pg-link {
  color: var(--pg-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease;
}
.pg .pg-link:hover { color: var(--pg-blue); text-decoration-color: currentColor; }
.pg .pg-link:active { color: var(--pg-blue-deep); }
.pg :is(.pg-link, .pg-row-link, .pg-doc, summary, .btn):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 3px; border-radius: 8px;
}
.pg .btn:active { transform: translateY(0) scale(.985); }

.pg-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; line-height: 1.5; background: var(--pg-chip-bg); color: var(--pg-chip-ink);
}
.pg-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pg-chip.is-hook { background: var(--surface-2); color: var(--pg-ink-2); }
.pg-chip.is-soon { background: transparent; color: var(--pg-ink-3); box-shadow: inset 0 0 0 1px var(--pg-line); }
.pg-chip.is-soon::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- hero: copy column hugs, visual sits close, next section peeks ---------- */
body.arc-concept .imsg section.pg-hero {
  display: flex; align-items: center; padding: clamp(64px, 7vw, 112px) clamp(20px, 5vw, 80px);
}
.arc-concept .pg-hero.hero-with-phone .imsg-container {
  display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); align-items: center;
  gap: clamp(28px, 4vw, 64px); max-width: 1180px; text-align: left; margin: 0 auto;
}
.arc-concept .pg-hero.hero-with-phone h1 {
  margin: 0; max-width: none; font-size: clamp(40px, 4.1vw, 54px); line-height: 1.04; letter-spacing: -.04em;
  font-weight: 600; text-wrap: balance;
}
.arc-concept .pg-hero.hero-with-phone .hero-sub { margin: 22px 0 0; max-width: 40ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; }
.pg-hero .pg-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.pg-hero .pg-price-note { margin: 16px 0 0; font-size: 14.5px; color: var(--pg-ink-2); }
.pg-hero .pg-price-note a { color: inherit; }
@media (max-width: 900px) {
  body.arc-concept .imsg section.pg-hero { padding: 40px 20px 32px; }
  .arc-concept .pg-hero.hero-with-phone .imsg-container { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: left; }
  .arc-concept .pg-hero.hero-with-phone .hero-copy { max-width: 560px; margin: 0; }
  .arc-concept .pg-hero.hero-with-phone h1 { margin: 0; max-width: 13ch; font-size: clamp(38px, 10vw, 52px); }
  .arc-concept .pg-hero.hero-with-phone .hero-sub { margin: 18px 0 0; font-size: 17px; }
}

/* ---------- the stage: one landscape scene per page, sized in container units ---------- */
.pg-stage {
  position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 11; justify-self: center;
  container-type: inline-size; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-align: left; user-select: none; -webkit-user-select: none;
}
.pg-avatar {
  width: 6.8cqw; height: 6.8cqw; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-size: 2.6cqw; font-weight: 600; background: linear-gradient(180deg, #9ca0aa, #7c808b);
}
.pg-avatar.is-biz { background: linear-gradient(180deg, #5aabff, #0088ff); }
.pg-msgs { position: relative; display: flex; flex-direction: column; gap: 1.2cqw; padding: 1.4cqw 2.4cqw 3cqw; }
.pg-bubble {
  max-width: 82%; padding: 1.6cqw 2.4cqw; border-radius: 3.6cqw; font-size: 2.55cqw; line-height: 1.3;
  transform-origin: 0 100%;
}
.pg-bubble.in { align-self: flex-start; background: var(--pg-bubble-in); color: var(--pg-phone-ink); }
.pg-bubble.out { align-self: flex-end; background: var(--pg-blue); color: #fff; transform-origin: 100% 100%; }
.pg-typing { position: absolute; left: 2.4cqw; top: 1.4cqw; opacity: 0; display: flex; gap: .8cqw; padding: 1.9cqw 2.4cqw; border-radius: 3.6cqw; background: var(--pg-bubble-in); }
.pg-typing i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #8e8e93; }

.pg-card {
  position: absolute; display: flex; flex-direction: column; background: var(--pg-card-bg); color: var(--pg-card-ink);
  border-radius: 3cqw; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); overflow: hidden;
}
.pg-card-head { display: flex; align-items: center; gap: 2cqw; padding: 2.4cqw 2.8cqw; border-bottom: 1px solid var(--pg-card-line); }
.pg-card-head .pg-avatar { width: 5.4cqw; height: 5.4cqw; font-size: 2.1cqw; }
.pg-card-title { font-size: 2.45cqw; font-weight: 600; line-height: 1.2; }
.pg-card-sub { font-size: 1.95cqw; color: var(--pg-card-ink-2); line-height: 1.2; }
.pg-card-tag {
  margin-left: auto; font-size: 1.8cqw; font-weight: 600; padding: .5cqw 1.5cqw; border-radius: 99px;
  background: color-mix(in srgb, var(--pg-blue) 12%, transparent); color: var(--pg-chip-ink);
}

/* CRM stage: a thread on the left, the contact's timeline on the right */
.pg-stage.is-crm .pg-card { right: 0; top: 14%; width: 61%; height: 76%; }
.pg-tl { list-style: none; margin: 0; padding: 1.6cqw 2.8cqw; display: flex; flex-direction: column; gap: 1.8cqw; }
.pg-tl li { position: relative; display: grid; grid-template-columns: 4cqw minmax(0, 1fr); gap: 1.6cqw; align-items: start; }
.pg-tl-dot {
  width: 4cqw; height: 4cqw; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--pg-blue);
}
.pg-tl-dot svg { width: 2.2cqw; height: 2.2cqw; }
.pg-tl li.is-out .pg-tl-dot { background: #8e8e93; }
.pg-tl-top { display: flex; align-items: baseline; gap: 1.4cqw; font-size: 2.2cqw; font-weight: 600; line-height: 1.25; }
.pg-tl-top span { margin-left: auto; font-weight: 500; font-size: 1.85cqw; color: var(--pg-card-ink-2); }
.pg-tl-text { font-size: 2.05cqw; line-height: 1.35; color: var(--pg-card-ink-2); margin-top: .5cqw; }
.pg-tl-meta { display: inline-block; margin-top: .9cqw; font-size: 1.75cqw; color: var(--pg-card-ink-2); }

/* lead stage: a form, a thin wire, the first text */
.pg-stage.is-lead .pg-card { left: 0; top: 6%; width: 52%; height: 78%; }
.pg-form { flex: 1; display: flex; flex-direction: column; gap: 1.8cqw; padding: 2.6cqw 3cqw 3cqw; }
.pg-field { display: flex; flex-direction: column; gap: .6cqw; }
.pg-field b { font-size: 1.85cqw; font-weight: 500; color: var(--pg-card-ink-2); }
.pg-field span { padding: 1.5cqw 1.9cqw; border-radius: 1.5cqw; font-size: 2.3cqw; box-shadow: inset 0 0 0 1px var(--pg-card-line); }
.pg-consent { display: flex; align-items: flex-start; gap: 1.4cqw; font-size: 1.9cqw; line-height: 1.35; color: var(--pg-card-ink-2); }
.pg-consent i { flex: none; width: 2.6cqw; height: 2.6cqw; border-radius: .7cqw; background: var(--pg-blue); display: grid; place-items: center; }
.pg-consent svg { width: 1.7cqw; height: 1.7cqw; }
.pg-submit {
  margin-top: auto; align-self: flex-start; padding: 1.7cqw 3.2cqw; border-radius: 99px; background: var(--pg-blue); color: #fff;
  font-size: 2.3cqw; font-weight: 600; transform-origin: 50% 50%;
}
.pg-wire { position: absolute; left: 52%; top: 40%; width: 10%; height: 0; border-top: 1.5px dashed color-mix(in srgb, var(--pg-ink-3) 70%, transparent); }
.pg-wire::after {
  content: ""; position: absolute; left: 0; top: -1cqw; width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: var(--pg-blue);
}
.pg-stage.is-lead .pg-hook {
  position: absolute; left: 4%; bottom: 0; display: flex; align-items: center; gap: 1.4cqw; padding: 1.5cqw 2.4cqw; border-radius: 99px;
  background: var(--pg-card-bg); color: var(--pg-card-ink); box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); font-size: 2.1cqw; font-weight: 500;
}
.pg-hook::before { content: ""; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #34c759; }

/* the one orchestrated moment: everything lands in order, once */
@media (prefers-reduced-motion: no-preference) {
  .pg-stage .pg-a { animation: pg-pop .55s var(--pg-ease) var(--d, 0s) both; }
  .pg-stage .pg-a.slide { animation-name: pg-slide; }
  .pg-stage .pg-press { animation: pg-press .5s ease var(--d, 0s) both; }
  .pg-stage .pg-wire::after { animation: pg-travel 1.1s cubic-bezier(.45, 0, .2, 1) var(--d, 0s) both; }
  .pg-stage .pg-typing i:nth-child(2) { animation-delay: .15s; }
  .pg-stage .pg-typing i:nth-child(3) { animation-delay: .3s; }
  .pg-stage .pg-typing { animation: pg-blip .8s ease var(--d, 0s) both; }
  .pg-stage .pg-typing i { animation: pg-dot 1s ease-in-out infinite; }
}
@keyframes pg-pop { from { opacity: 0; transform: translateY(1.4cqw) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pg-slide { from { opacity: 0; transform: translateX(-2.4cqw); } to { opacity: 1; transform: none; } }
@keyframes pg-press { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes pg-travel { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; } 100% { opacity: 1; transform: translateX(8cqw); } }
@keyframes pg-blip { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pg-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-.5cqw); } }
@media (max-width: 900px) { .pg-stage { max-width: 560px; justify-self: start; } }

/* ---------- section rhythm helpers ---------- */
.imsg section.pg-sec { padding: clamp(32px, 4vw, 60px) 0; }

/* a wide tinted band: used for the one-picture explanation */
.pg-band { background: var(--surface-2); border-radius: 28px; padding: clamp(28px, 4vw, 56px); }
.pg-band .pg-band-copy { margin-bottom: 32px; }
.pg-nodes { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.pg-node {
  background: var(--surface); border: 1px solid var(--pg-line); border-radius: 18px; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px;
}
.pg-node h3 { font-size: 1.05rem; }
.pg-node p { font-size: .95rem; line-height: 1.45; color: var(--pg-ink-2); }
.pg-node.is-zs { border-color: color-mix(in srgb, var(--pg-blue) 45%, transparent); background: color-mix(in srgb, var(--pg-blue) 6%, var(--surface)); }
.pg-node svg { width: 26px; height: 26px; color: var(--pg-blue); margin-bottom: 6px; }
.pg-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--pg-ink-3); font-size: 13px; text-align: center; max-width: 118px; line-height: 1.3; }
.pg-arrow svg { width: 44px; height: 16px; color: var(--pg-blue); }
.pg-band .pg-band-note { max-width: 62ch; margin: 24px auto 0; text-align: center; font-size: .95rem; color: var(--pg-ink-2); line-height: 1.5; }
@media (max-width: 820px) {
  .pg-nodes { grid-template-columns: 1fr; }
  .pg-arrow { flex-direction: row; max-width: none; justify-content: center; }
  .pg-arrow svg { transform: rotate(90deg); width: 36px; }
}

/* a grid that is also the comparison table */
.pg-tablewrap { background: var(--surface); border: 1px solid var(--pg-line); border-radius: var(--pg-r); overflow: hidden; }
.pg-table { width: 100%; border-collapse: collapse; font-size: .98rem; table-layout: fixed; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 18px 20px; border-top: 1px solid var(--pg-line); line-height: 1.45; color: var(--pg-ink-2); }
.pg-table thead th { border-top: 0; background: var(--surface-2); color: var(--pg-ink); font-weight: 600; font-size: .9rem; padding-block: 14px; }
.pg-table tbody th { width: 24%; color: var(--pg-ink); font-weight: 600; }
.pg-table tbody th .pg-chip { display: flex; width: fit-content; margin-top: 8px; }
.pg-table tbody th a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s ease, color .15s ease; }
.pg-table tbody th a:hover { color: var(--pg-blue); background-size: 100% 1.5px; }
.pg-table tbody tr { transition: background-color .15s ease; }
.pg-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.pg-table tr.is-soon td, .pg-table tr.is-soon th { opacity: .72; }
@media (max-width: 720px) {
  .pg-table, .pg-table thead, .pg-table tbody, .pg-table tr, .pg-table th, .pg-table td { display: block; width: auto; }
  .pg-table thead { display: none; }
  .pg-table tbody tr { padding: 18px 18px 16px; border-top: 1px solid var(--pg-line); }
  .pg-table tbody tr:first-child { border-top: 0; }
  .pg-table th, .pg-table td { border: 0; padding: 0; }
  .pg-table tbody th { width: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
  .pg-table tbody th .pg-chip { margin: 0; }
  .pg-table td { padding: 3px 0; }
  .pg-table td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 600; color: var(--pg-ink-3); }
}

/* setup: sticky heading on the left, one open row at a time on the right */
.pg-setup { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pg-setup .sec-head { position: sticky; top: 96px; margin-bottom: 0; }
.pg-acc { border-top: 1px solid var(--pg-line); }
.pg-acc details { border-bottom: 1px solid var(--pg-line); }
.pg-acc summary {
  display: flex; align-items: center; gap: 12px; padding: 20px 2px; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 600;
  letter-spacing: -.015em; color: var(--pg-ink); transition: color .15s ease;
}
.pg-acc summary::-webkit-details-marker { display: none; }
.pg-acc summary:hover { color: var(--pg-blue); }
.pg-acc summary:active { color: var(--pg-blue-deep); }
.pg-acc summary .pg-chip { margin-left: auto; }
.pg-acc summary .pg-chev { flex: none; width: 20px; height: 20px; color: var(--pg-ink-3); transition: transform .2s ease; }
.pg-acc details[open] summary .pg-chev { transform: rotate(180deg); }
.pg-acc .pg-body { padding: 0 2px 28px; max-width: 64ch; }
.pg-acc .pg-body > p { color: var(--pg-ink-2); line-height: 1.55; margin: 0 0 16px; }
.pg-steps { list-style: none; counter-reset: pp; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.pg-steps li { counter-increment: pp; position: relative; padding-left: 40px; color: var(--pg-ink-2); line-height: 1.55; }
.pg-steps li::before {
  content: counter(pp); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--pg-ink); box-shadow: inset 0 0 0 1px var(--pg-line);
}
.pg-steps li b { color: var(--pg-ink); font-weight: 600; }
.pg-acc .pg-fine { font-size: .93rem; color: var(--pg-ink-2); line-height: 1.5; margin: 0 0 10px; }
@media (max-width: 900px) {
  .pg-setup { grid-template-columns: 1fr; gap: 24px; }
  .pg-setup .sec-head { position: static; }
  .pg-acc summary { flex-wrap: wrap; }
}

/* limits as a strip of rule tiles */
.pg-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pg-strip > .pg-rule { grid-column: span 2; }
.pg-strip > .pg-rule:nth-child(n+4) { grid-column: span 3; }
.pg-rule { background: var(--surface); border: 1px solid var(--pg-line); border-radius: 18px; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.pg-rule .pg-code-badge { align-self: flex-start; }
.pg-rule h3 { font-size: 1rem; }
.pg-rule p { font-size: .92rem; line-height: 1.5; color: var(--pg-ink-2); }
.pg-code-badge {
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 7px;
  background: var(--surface-2); color: var(--pg-ink); box-shadow: inset 0 0 0 1px var(--pg-line); white-space: nowrap;
}
.pg .pg-strip-foot { margin-top: 20px; font-size: .95rem; color: var(--pg-ink-2); line-height: 1.55; max-width: 78ch; }
@media (max-width: 1000px) { .pg-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pg-strip > .pg-rule, .pg-strip > .pg-rule:nth-child(n+4) { grid-column: span 1; } .pg-strip > .pg-rule:last-child { grid-column: span 2; } }
@media (max-width: 640px) { .pg-strip { grid-template-columns: 1fr; } .pg-strip > .pg-rule:last-child { grid-column: span 1; } }

/* limits as rows (the lead page): rule name left, what to do right */
.pg-rows { border-top: 1px solid var(--pg-line); }
.pg-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 8px 32px; padding: 20px 2px; border-bottom: 1px solid var(--pg-line); align-items: baseline; }
.pg-row h3 { font-size: 1.02rem; }
.pg-row p { color: var(--pg-ink-2); line-height: 1.55; max-width: 68ch; }
@media (max-width: 700px) { .pg-row { grid-template-columns: 1fr; } }

/* how it works with the call beside it */
.pg-how { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pg-how .pg-steps li { padding-left: 46px; font-size: 1.02rem; }
.pg-how .pg-steps li::before { width: 32px; height: 32px; font-size: 14px; }
.pg-how .pg-steps li b { display: block; margin-bottom: 2px; font-size: 1.1rem; letter-spacing: -.01em; }
.pg-code {
  position: sticky; top: 96px; background: var(--pg-code-bg); color: var(--pg-code-ink); border-radius: var(--pg-r); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), var(--pg-lift);
}
.pg-code-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 13px; color: var(--pg-code-dim); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pg-code-head i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.pg-code-head span { margin-left: 6px; }
.pg-code pre { margin: 0; padding: 18px 18px 20px; overflow-x: auto; font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-code pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.pg-code .c { color: var(--pg-code-dim); }
.pg-code .k { color: #8ab9ff; }
.pg-code-foot { padding: 14px 18px 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; line-height: 1.5; color: var(--pg-code-dim); }
.pg-code-foot a { color: #cfe0ff; }
.pg-code-foot code { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: var(--pg-code-ink); }
@media (max-width: 900px) { .pg-how { grid-template-columns: 1fr; } .pg-code { position: static; } }

/* sources: a bento of different sizes, each one a link */
.pg-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.pg-tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--pg-line); color: inherit; text-decoration: none; transition: transform .2s var(--pg-ease), border-color .2s ease, background-color .2s ease;
}
.pg-tile:nth-child(1) { grid-column: span 7; background: var(--surface-2); border-color: transparent; }
.pg-tile:nth-child(2) { grid-column: span 5; }
.pg-tile:nth-child(3) { grid-column: span 5; }
.pg-tile:nth-child(4) { grid-column: span 7; background: var(--surface-2); border-color: transparent; }
.pg-tile svg.pg-ico { width: 30px; height: 30px; color: var(--pg-blue); margin-bottom: 10px; }
.pg-tile h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.pg-tile p { color: var(--pg-ink-2); line-height: 1.5; max-width: 46ch; }
.pg-tile .pg-go { margin-top: auto; padding-top: 10px; font-size: .95rem; font-weight: 600; color: var(--pg-ink); display: inline-flex; gap: 6px; align-items: center; }
.pg-tile .pg-go svg { width: 14px; height: 14px; transition: transform .2s var(--pg-ease); }
.pg-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pg-blue) 40%, transparent); }
.pg-tile:hover .pg-go { color: var(--pg-blue); }
.pg-tile:hover .pg-go svg { transform: translateX(3px); }
.pg-tile:active { transform: translateY(-1px) scale(.995); }
.pg-tile:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 3px; }
@media (max-width: 860px) { .pg-tile:nth-child(n) { grid-column: span 12; } }


/* price: two tiles that reuse the plan tile */
.pg-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; margin: 0 auto; }
.pg-price .plan .perks { margin-bottom: 24px; }
@media (max-width: 700px) { .pg-price { grid-template-columns: 1fr; max-width: 460px; } }

/* related guides: two-column link rows, then sibling pages */
.pg-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--pg-line); }
.pg-links li { border-bottom: 1px solid var(--pg-line); }
.pg-row-link {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 2px; color: var(--pg-ink); text-decoration: none; line-height: 1.4;
  font-weight: 500; transition: color .15s ease, padding-left .2s var(--pg-ease);
}
.pg-row-link small { display: block; margin-top: 3px; font-size: .88rem; font-weight: 400; color: var(--pg-ink-3); }
.pg-row-link svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--pg-ink-3); transition: transform .2s var(--pg-ease), color .15s ease; }
.pg-row-link:hover { color: var(--pg-blue); padding-left: 6px; }
.pg-row-link:hover svg { color: var(--pg-blue); transform: translateX(3px); }
.pg-row-link:active { color: var(--pg-blue-deep); }
.pg-doc { color: var(--pg-ink); }
@media (max-width: 760px) { .pg-links { grid-template-columns: 1fr; } }

/* closing call to action */
.pg-end { background: var(--surface-2); border-radius: 28px; padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px); text-align: center; }
.pg-end h2 { margin-bottom: 12px; }
.pg-end p { color: var(--pg-ink-2); max-width: 52ch; margin: 0 auto; line-height: 1.55; }
.pg-end .pg-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* phones: the scene keeps its layout and its type grows */
@media (max-width: 560px) {
  .pg-stage { aspect-ratio: 1 / .92; }
  .pg-bubble { font-size: 3.3cqw; }
  .pg-card-title { font-size: 3cqw; }
  .pg-tl-top { font-size: 2.9cqw; }
  .pg-tl-text { font-size: 2.7cqw; }
  .pg-tl-top span, .pg-tl-meta, .pg-card-sub, .pg-field b, .pg-consent { font-size: 2.4cqw; }
  .pg-card-tag { font-size: 2.3cqw; }
  .pg-field span, .pg-submit { font-size: 2.9cqw; }
  .pg-stage.is-lead .pg-hook { font-size: 2.7cqw; }
}

/* ==== mp-reactions-1 ==== */
/* The reactions feature page: a sequence of large moments on the homepage background, all on one grid (.imsg-container) and one spacing token.
   Phones are the site's .imsg-phone frame; reactions, tails and typing are the shared parts. Only transform and opacity move, once, and not under reduced motion. */
.pg-rx-page { --pg-rx-gap: clamp(120px, 12vw, 200px); }
.arc-concept .pg-rx-page .pg-hero.hero-with-phone h1 { font-weight: 400; letter-spacing: -.04em; }

/* a portrait phone: the site's CSS phone frame (.imsg-phone) with a Dynamic Island, a status bar, the thread and the input.
   Sized in container units of the screen, so one scale fits every phone on the page. */
.pg-dev { position: relative; width: min(100%, var(--pg-w, 360px)); text-align: left; }
/* cropped, not squashed: the device keeps its proportions and is cut off at --pg-crop with a soft fade, so only the status bar, the contact and the thread show */
.pg-dev-crop { margin: -28px -72px 0; padding: 28px 72px 0; height: calc(var(--pg-crop, 540px) + 28px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 110px), transparent); mask-image: linear-gradient(#000 calc(100% - 110px), transparent); }
@media (max-width: 560px) { .pg-rx-page .pg-dev { --pg-w: 300px; --pg-crop: 460px; } .pg-dev-crop { margin-inline: -18px; padding-inline: 18px; } }
.pg-dev .imsg-phone { width: 100%; }
.pg-dev-phone {
  /* a tapback badge is twice the body text: 34 pt on 17 pt, so 2 x the bubble font (5cqw) */
  --pg-bfs: 5cqw; --tb-size: calc(2 * var(--pg-bfs)); --tb-ring: var(--pg-phone-bg); --tb-theirs: var(--pg-bubble-in); --bt-u: .27cqw; --pg-gap: 2.8cqw;
  --tb-room: calc(38 * var(--tb-size) / 34 - var(--pg-gap));
  --th-u: calc(.656 * 100cqw / 320); --th-ink: var(--pg-phone-ink); --th-meta: var(--pg-phone-meta); --th-bg: var(--pg-phone-bg);   /* the contact header is css/thread-head.css */
  container-type: inline-size; display: flex; flex-direction: column; background: var(--pg-phone-bg) !important; color: var(--pg-phone-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased;
}
.pg-dev-msgs { flex: 1; display: flex; flex-direction: column; gap: var(--pg-gap); padding: calc(32 * var(--th-u)) 4.4cqw 4cqw; }   /* the header's clearance (css/thread-head.css) */
.th-head--group + .pg-dev-msgs { padding-top: calc(46 * var(--th-u)); }
.pg-dev .pg-bubble { font-size: var(--pg-bfs); padding: 2.5cqw 4cqw; border-radius: 5.6cqw; max-width: 80%; line-height: 1.28; }

/* the reaction picker: the six tapbacks as buttons, the chosen one filled blue like Messages does */
.pg-rx-pick {
  --tb-size: 32px; --tb-ring: var(--surface); --tb-theirs: var(--surface-2);
  display: flex; justify-content: center; gap: 4px; padding: 8px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line), var(--pg-lift);
}
.pg-rx-pick button { position: relative; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; transition: transform .18s var(--pg-ease), background-color .15s ease; }
.pg-rx-pick button:hover { transform: translateY(-3px) scale(1.14); background: var(--surface-2); }
.pg-rx-pick button:active { transform: scale(.92); }
.pg-rx-pick button:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 1px; }
.pg-rx-pick button[aria-pressed="true"] { background: var(--tb-mine); }
.pg-rx-pick button .tb { box-shadow: none; }
.pg-rx-pick button[aria-pressed="true"] .tb { --tb-fill: transparent; }
.imsg .pg-rx-hint { margin: 14px 0 0; text-align: left; font-size: 14.5px; line-height: 1.5; color: var(--pg-ink-3); }

/* moments: one container, one spacing token, headings and captions flush left */
.imsg section.pg-rx-moment { padding: calc(var(--pg-rx-gap) / 2) 0; }
.imsg .pg-rx-head { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 48px); text-align: left; }
.imsg .pg-rx-head h2, .imsg .pg-rx-copy h2 { margin: 0; font-size: clamp(38px, 5.4vw, 76px); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.imsg .pg-rx-head p, .imsg .pg-rx-copy p { max-width: 46ch; margin: 18px 0 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--pg-ink-2); }

/* hero */
.pg-rx-hero { position: relative; display: grid; place-items: center; padding: 16px 0 28px; }
.pg-rx-hero .pg-dev { --pg-w: 340px; --pg-crop: 520px; z-index: 1; }
.pg-rx-call { position: absolute; z-index: 2; left: 2%; bottom: 4%; width: min(250px, 58%); }
.pg-rx-call .pg-code { position: static; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), var(--pg-lift); }
.pg-rx-call pre { font-size: 12.5px; padding: 14px 16px 16px; }
@media (max-width: 900px) { .pg-rx-hero { max-width: 460px; justify-self: center; width: 100%; } .pg-rx-call { left: 0; bottom: 6%; width: min(250px, 62%); } }
@media (max-width: 480px) { .pg-rx-call { left: -4px; width: 64%; } .pg-rx-call pre { font-size: 11px; padding: 12px; } }

/* moments one and two: a phone and a code card side by side, centred on each other */
.pg-rx-one, .pg-rx-two { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pg-rx-two { grid-template-columns: minmax(0, 1fr) 360px; }
.pg-rx-vis { width: min(100%, 360px); }
.pg-rx-vis .pg-dev { --pg-w: 360px; --pg-crop: 540px; }
.pg-rx-vis .pg-rx-pick { margin-top: 8px; }
.imsg .pg-rx-req { margin: 14px 0 0; font-size: 13px; color: var(--pg-ink-3); }
.pg-rx-req code { font-size: inherit; }
.pg-rx-one .pg-code { position: static; }
.pg-rx-one .pg-code pre b { font-weight: 600; color: #fff; }
.pg-rx-log { margin-top: 32px; background: #12161e; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), var(--pg-lift); }
.pg-rx-log .pg-code-head { color: #8c96a8; }
.pg-rx-log-body { padding: 8px 18px 18px; min-height: 210px; display: flex; flex-direction: column; gap: 14px; }
.pg-rx-evt { font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 12.5px; line-height: 1.6; color: var(--pg-code-ink); }
.pg-rx-evt .c { color: var(--pg-code-dim); display: block; }
.pg-rx-evt pre { margin: 6px 0 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.pg-rx-evt.is-old { opacity: .45; }
.pg-rx-evt.is-wait { color: var(--pg-code-dim); }
@media (prefers-reduced-motion: no-preference) { .pg-rx-evt.is-new { animation: pg-rx-evt .5s var(--pg-ease) both; } }
@keyframes pg-rx-evt { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .pg-rx-one, .pg-rx-two { grid-template-columns: minmax(0, 1fr); } .pg-rx-one .pg-rx-copy { order: -1; } }

/* moment three: the six reactions in one row */
.pg-rx-six { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pg-rx-tile { --tb-size: 64px; --tb-ring: transparent; display: flex; flex-direction: column; gap: 28px; padding: 24px 20px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line); }
.pg-rx-tile h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; }
@media (max-width: 960px) { .pg-rx-six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pg-rx-six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* moment four: where a reaction can go */
.pg-rx-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.pg-rx-type { padding-top: 40px; display: flex; }
.pg-rx-bub {
  --tb-ring: var(--bg, var(--surface)); --tb-theirs: var(--pg-bubble-in); --tb-size: 34px;
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 28px; font-size: 18px; line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; background: var(--pg-bubble-in); color: var(--pg-phone-ink);
}
.pg-rx-bub.is-out { background: var(--pg-blue); color: #fff; }
.pg-rx-bub svg { width: 24px; height: 24px; flex: none; }
.pg-rx-bub.is-ghost { background: transparent; color: var(--pg-ink-2); box-shadow: inset 0 0 0 1.5px var(--pg-line); border-style: dashed; }
.pg-rx-bub.is-ghost .pg-code-badge { background: transparent; }
@media (max-width: 760px) { .pg-rx-types { grid-template-columns: 1fr 1fr; } .pg-rx-bub { font-size: 16px; padding: 14px 18px; } }
@media (max-width: 480px) { .pg-rx-types { grid-template-columns: 1fr; } }

/* detail layer */
.pg-rx-events .pg-table tbody th { width: 26%; }
@media (max-width: 640px) { .imsg section.pg-rx-faq { padding: clamp(40px, 6vw, 80px) 0; } }
@media (max-width: 480px) { .pg-rx-pick button { width: 40px; height: 40px; } .pg-rx-pick { --tb-size: 29px; } }
.imsg.pg-rx-page section.pg-sec, .imsg.pg-rx-page section.pg-rx-faq { padding: calc(var(--pg-rx-gap) / 2) 0; }
body.arc-concept .imsg.pg-rx-page section.pg-hero { padding-bottom: calc(var(--pg-rx-gap) / 2); }
/* ==== mp-support-1 ==== */
/* Apple-style moments: a big headline, one or two sentences, one large visual that shows it. Used by the customer support page.
   Motion is transform and opacity only, plays once, and is off for reduced motion. */
.pg-flow { --pg-gap-y: clamp(56px, 7vw, 104px); }
.imsg.pg-flow section.pg-sec, .imsg.pg-flow section.pg-m { padding: calc(var(--pg-gap-y) / 2) 0; }

/* hero: centred headline, then the live console */
/* pg-herox is also a .pg-sec, so it needs the same specificity as the .pg-flow section padding to keep its own top padding clear of the fixed nav */
.imsg section.pg-sec.pg-herox { padding: clamp(116px, 11vw, 150px) 0 0; }
.pg-herox .imsg-container { max-width: 1180px; margin: 0 auto; text-align: center; }
body.arc-concept .imsg .pg-herox h1 {
  margin: 0 auto; max-width: 13ch; font-size: clamp(42px, 7vw, 88px); line-height: 1.04; letter-spacing: -.04em; font-weight: 400; text-wrap: balance;
}
body.arc-concept .imsg .pg-herox .hero-sub { margin: 24px auto 0; max-width: 44ch; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; color: var(--pg-ink-2); }
.pg-herox .pg-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 0; }
.pg-herox .pg-price-note { margin: 16px 0 0; font-size: 14.5px; color: var(--pg-ink-2); }
.pg-herox .pg-price-note a { color: inherit; }
.pg-console { position: relative; max-width: 1120px; margin: clamp(36px, 5vw, 64px) auto 0; isolation: isolate; text-align: left; }
.pg-console::before {
  content: none;
}
.pg-console-note { max-width: 62ch; margin: 24px 0 0; text-align: left; color: var(--pg-ink-2); line-height: 1.55; font-size: 1.02rem; }

/* a moment: copy on one side, the visual on the other */
.imsg section.pg-m { padding: clamp(64px, 9vw, 140px) 0; }
.pg-m-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pg-m-grid.is-flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.pg-m-grid.is-flip .pg-m-copy { order: 2; }
.pg-m-copy h2, .pg-m-head h2 {
  margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.04em; font-weight: 400; text-wrap: balance;
}
.pg-m-copy p, .pg-m-head p { margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--pg-ink-2); max-width: 44ch; }
.pg-m-copy p.pg-m-fine, .pg-m-head p.pg-m-fine { font-size: 15.5px; line-height: 1.55; color: var(--pg-ink-3); }
.pg-m-copy .pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }


.pg-m-vis {
  position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate;
}
@media (max-width: 900px) {
  .pg-m-grid, .pg-m-grid.is-flip { grid-template-columns: 1fr; gap: 36px; }
  .pg-m-grid.is-flip .pg-m-copy { order: 0; }
}

/* a hint pill that floats beside the phone and points at the thing to press */
.pg-hint {
  position: absolute; right: -86px; bottom: 90px; padding: 7px 13px; border-radius: 99px; background: var(--pg-card-bg); color: var(--pg-card-ink);
  font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); pointer-events: none;
}
.pg-hint.is-gone { display: none; }

/* a row of choices that drives a demo */
.pg-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.pg-pick button {
  font: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 16px; border-radius: 99px; cursor: pointer; color: var(--pg-ink);
  background: var(--surface); border: 1px solid var(--pg-line);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s var(--pg-ease);
}
.pg-pick button:hover { border-color: color-mix(in srgb, var(--pg-blue) 45%, transparent); color: var(--pg-blue); }
.pg-pick button:active { transform: scale(.97); }
.pg-pick button[aria-pressed="true"] { background: var(--pg-blue); border-color: var(--pg-blue); color: #fff; }
.pg-pick button:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 2px; }

/* the Slack side of the relay: a plain channel card, not Slack's own branding */
.pg-sl {
  position: relative; z-index: 2; flex: none; width: min(100%, 380px); margin-right: -14px; align-self: center;
  background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 18px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; text-align: left;
}
.pg-sl-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--pg-card-line); font-weight: 700; font-size: 15px; }
.pg-sl-head small { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--pg-card-ink-2); }
.pg-sl-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; min-height: 230px; }
.pg-sl-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.4; }
.pg-sl-av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; background: #0b84fe; }
.pg-sl-av.is-me { background: #7c808b; }
.pg-sl-msg b { font-size: 14px; }
.pg-sl-msg b span { margin-left: 6px; font-weight: 500; font-size: 12px; color: var(--pg-card-ink-2); }
.pg-sl-msg p { margin: 2px 0 0; color: var(--pg-card-ink); }
.pg-sl-msg p code { font-size: 12px; background: color-mix(in srgb, var(--pg-card-ink) 7%, transparent); border-color: transparent; color: inherit; }
.pg-sl-msg .pg-sl-sub { display: block; margin-top: 4px; font-size: 12.5px; color: var(--pg-card-ink-2); }
.pg-sl-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--pg-card-line); }
.pg-sl-field { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 9px; font-size: 13px; color: var(--pg-card-ink-2); box-shadow: inset 0 0 0 1px var(--pg-card-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-sl-bar .btn { flex: none; min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (max-width: 900px) {
  .pg-m-vis.is-relay { flex-direction: column; }
  .pg-sl { margin: 0 0 -20px; align-self: center; }
}

/* order status: the phone and the tool panel */
.pg-tools {
  position: relative; z-index: 2; flex: none; width: 100%; margin-left: -38px; align-self: flex-start;
  background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 18px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); overflow: hidden; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
}
.pg-tools-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--pg-card-line); }
.pg-tools-head b { display: block; font-size: 15px; }
.pg-tools-head small { font-size: 12.5px; color: var(--pg-card-ink-2); }
.pg-tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 18px; border-bottom: 1px solid var(--pg-card-line); transition: background-color .3s ease; }
.pg-tool:last-of-type { border-bottom: 0; }
.pg-tool code { font-size: 13px; background: none; border: 0; padding: 0; color: var(--pg-card-ink); font-weight: 600; }
.pg-tool small { grid-column: 1; font-size: 12.5px; color: var(--pg-card-ink-2); line-height: 1.35; }
.pg-tool .pg-sw { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.pg-sw { width: 38px; height: 22px; border-radius: 99px; background: #34c759; position: relative; }
.pg-sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.pg-sw.is-off { background: color-mix(in srgb, var(--pg-card-ink) 22%, transparent); }
.pg-sw.is-off::after { right: auto; left: 2px; }
.pg-tool.is-called { background: color-mix(in srgb, var(--pg-blue) 10%, transparent); }
.pg-tool .pg-called { display: none; grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: var(--pg-chip-ink); }
.pg-tool.is-called .pg-called { display: block; }
@media (max-width: 900px) {
  .pg-m-vis.is-tools { flex-direction: column; gap: 0; }
  .pg-tools { margin: -24px 0 0; }
}

/* who answers: three tiles of different sizes */
.pg-who { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.pg-who-tile { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--pg-line); min-width: 0; }
.pg-who-tile:nth-child(1) { grid-column: span 7; }
.pg-who-tile:nth-child(2) { grid-column: span 5; }
.pg-who-tile:nth-child(3) { grid-column: span 12; flex-direction: row; align-items: center; gap: clamp(20px, 5vw, 64px); }
.pg-who-tile h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; margin: 0; }
.pg-who-tile p { margin: 0; color: var(--pg-ink-2); line-height: 1.5; font-size: 1.02rem; max-width: 46ch; }
.pg-who-tile .pg-chip { align-self: flex-start; }
.pg-who-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1; }
.pg-minilist { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 420px; }
.pg-minilist li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line); font-size: 14px; }
.pg-minilist b { display: block; font-size: 14px; }
.pg-minilist span.pg-prev { display: block; font-size: 13px; color: var(--pg-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-minilist time { font-size: 12px; color: var(--pg-ink-3); }
.pg-minilist .pg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pg-blue); display: inline-block; margin-left: 6px; }
.pg-who-code { align-self: flex-start; font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 13px; padding: 10px 14px; border-radius: 12px; background: var(--pg-code-bg); color: var(--pg-code-ink); max-width: 100%; overflow-x: auto; }
@media (max-width: 860px) {
  .pg-who-tile:nth-child(n) { grid-column: span 12; }
  .pg-who-tile:nth-child(3) { flex-direction: column; align-items: flex-start; }
}

/* the number moment */

.pg-stat-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pg-stat-num { margin: 0; font-size: clamp(76px, 12.5vw, 184px); line-height: .95; letter-spacing: -.04em; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--pg-ink); }
.pg-stat-num small { display: block; margin-top: 18px; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.02em; font-weight: 500; color: var(--pg-ink-2); }
.pg-stat-copy h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.04em; font-weight: 400; text-wrap: balance; }
.pg-stat-copy p { margin: 18px 0 0; color: var(--pg-ink-2); line-height: 1.5; font-size: 1.05rem; max-width: 40ch; }
@media (max-width: 900px) { .pg-stat-grid { grid-template-columns: 1fr; } }
/* compact mid-page notes */
.pg-notlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pg-notlist li { padding: 20px 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--pg-line); color: var(--pg-ink-2); line-height: 1.5; font-size: .98rem; }
.pg-notlist li b { display: block; margin-bottom: 6px; color: var(--pg-ink); font-size: 1rem; }
@media (max-width: 860px) { .pg-notlist { grid-template-columns: 1fr; } }

/* sibling pages as a row of cards */
.pg-sibs { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pg-sib { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--pg-line); color: inherit; text-decoration: none; transition: transform .2s var(--pg-ease), border-color .2s ease; }
.pg-sib b { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.pg-sib span { color: var(--pg-ink-2); line-height: 1.45; font-size: .95rem; }
.pg-sib:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pg-blue) 40%, transparent); }
.pg-sib:active { transform: translateY(-1px) scale(.995); }
.pg-sib:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 3px; }
@media (max-width: 760px) { .pg-sibs { grid-template-columns: 1fr; } }

/* faq without a side column */

.pg-ph-wrap { position: relative; flex: none; width: min(100%, 320px); }
.pg-ph-wrap > .pg-phf { width: 100%; }
@media (max-width: 560px) { .pg-hint { right: -4px; bottom: 74px; } }


.pg-sl-bar .btn { width: auto; }
.pg-ph-wrap .pg-hint { z-index: 3; }

/* the order moment: the phone, then the tool panel with its note under it */
.pg-tools-col { flex: 1 1 0; min-width: 0; margin-left: 0; display: flex; flex-direction: column; align-self: center; }
.pg-tools-col .pg-tools { margin-left: -38px; width: calc(100% + 38px); align-self: auto; }
.pg-tools-note { margin: 0; color: var(--pg-ink-3); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 900px) {
  .pg-tools-col { margin: 0; width: min(100%, 460px); flex: none; }
  .pg-tools-col .pg-tools { margin: -24px 0 0; width: 100%; }
  .pg-m-vis.is-tools { flex-direction: column; }
}
.pg-sl-bar .btn:hover:not(:disabled) { border-color: var(--btn-line-hover); }
.pg-sl-bar .btn:disabled { opacity: .5; cursor: default; }

/* the question picker: stacked, flush left under the copy */
.pg-asks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 28px 0 0; }
.pg-asks button { text-align: left; }
.pg-tool .pg-sw.is-off + .pg-called { color: var(--pg-card-ink-2); }
.pg-tool.is-called .pg-called { display: block; }
.pg-tool.is-off-called { background: color-mix(in srgb, var(--pg-card-ink) 6%, transparent); }
.pg-tool.is-off-called .pg-called { display: block; color: var(--pg-card-ink-2); }
.pg-tool-file code { font-family: inherit; font-weight: 600; font-size: 13px; }
.pg-m-copy .pg-pick { margin: 26px 0 0; }

.pg-m-head { margin: 0 0 clamp(28px, 4vw, 48px); max-width: 760px; }
.pg-m-grid.is-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); }
@media (max-width: 900px) { .pg-m-grid.is-wide { grid-template-columns: 1fr; } }
.pg-tool-file .pg-chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.pg-tool-file .pg-chip::before { display: none; }
.pg-m-vis.is-tools { justify-content: flex-start; align-items: center; }
.pg-m-vis.is-tools .pg-phf { width: 300px; }
.pg-tools-col .pg-tools { width: calc(100% + 38px); }

.pg-flow .pg-end h2 { font-weight: 400; }
.pg-flow .pg-rule h3 { font-weight: 500; }

/* ---- second review: calmer page, smaller and wider phones cropped by a fade, bigger gaps between sections ---- */
.pg-flow { --pg-gap-y: clamp(120px, 12vw, 200px); }
.imsg.pg-flow section.pg-herox { padding-bottom: calc(var(--pg-gap-y) / 2); }
.pg-m-grid, .pg-m-grid.is-wide { gap: clamp(28px, 4vw, 64px); }
.pg-m-copy p { margin-top: 16px; max-width: 46ch; }
.pg-m-copy .pg-pick, .pg-m-copy .pg-asks { margin-top: 22px; }
.pg-m-copy h2 { font-size: clamp(36px, 4.4vw, 56px); }

.pg-m-vis.is-tools .pg-phc { width: 400px; }
@media (max-width: 900px) {
  .pg-m-vis.is-tools .pg-phc { width: min(100%, 340px); }
}
@media (max-width: 900px) {
  .pg-m-vis.is-tools .pg-phc { width: min(100%, 340px); }
}
/* overlaps keep to the bezel */
.pg-sl { margin-right: -34px; }
.pg-tools-col .pg-tools { margin-left: -50px; width: calc(100% + 50px); }
@media (max-width: 900px) { .pg-sl { margin: 0 0 -8px; } .pg-tools-col .pg-tools { margin: -8px 0 0; width: 100%; } }
.pg-rows .pg-row p code { font-size: .86em; }
/* ==== mp-ghl-1 ==== */
/* GoHighLevel page: a workflow card, the webhook settings, a response card. Plain cards, not HighLevel's own branding.
   Motion is transform and opacity only, plays once, and is off for reduced motion. */
body.arc-concept .imsg.pg-ghl .pg-herox h1 { max-width: 20ch; font-size: clamp(38px, 5.6vw, 72px); }
.pg-ghl-vis { max-width: 880px; margin: clamp(36px, 5vw, 64px) auto 0; gap: 0; }
.pg-ghl-wf, .pg-ghl-cfg, .pg-ghl-res {
  position: relative; z-index: 2; flex: none; width: min(100%, 380px); text-align: left; overflow: hidden;
  background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 18px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
}
.pg-ghl-vis .pg-ghl-wf { margin-right: -34px; align-self: center; }
.pg-ghl-wf-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--pg-card-line); font-size: 15px; }
.pg-ghl-wf-head small { margin-left: auto; font-size: 12.5px; color: var(--pg-card-ink-2); }
.pg-ghl-node { position: relative; display: grid; gap: 2px; margin: 0 18px; padding: 14px 0 14px 18px; border-bottom: 1px solid var(--pg-card-line); }
.pg-ghl-node:last-child { border-bottom: 0; }
.pg-ghl-node::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--pg-card-ink) 28%, transparent); }
.pg-ghl-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pg-card-ink-2); }
.pg-ghl-node b { font-size: 15px; font-weight: 600; }
.pg-ghl-node small { font-size: 12.5px; color: var(--pg-card-ink-2); line-height: 1.4; }
.pg-ghl-node code { font-size: 12px; background: color-mix(in srgb, var(--pg-card-ink) 7%, transparent); border-color: transparent; color: inherit; }
.pg-ghl-node.is-gone b, .pg-ghl-node.is-gone small { text-decoration: line-through; text-decoration-thickness: 1px; opacity: .55; }
.pg-ghl-node.is-hot::before { background: var(--pg-blue); }
.pg-ghl-node.is-run::before { animation: pg-ghl-run .9s var(--pg-ease) 1 both; }
@keyframes pg-ghl-run { from { transform: scale(1); opacity: .4; } to { transform: scale(1.5); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pg-ghl-node.is-run::before { animation: none; } }

.pg-ghl-fields { margin: 0; padding: 6px 18px 2px; }
.pg-ghl-fields > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--pg-card-line); font-size: 13.5px; line-height: 1.4; }
.pg-ghl-fields dt { color: var(--pg-card-ink-2); }
.pg-ghl-fields dd { margin: 0; color: var(--pg-card-ink); overflow-wrap: anywhere; }
.pg-ghl-fields dd.is-mono { font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 12px; }
.pg-ghl-body { padding: 12px 18px 18px; }
.pg-ghl-body > span { display: block; margin-bottom: 8px; font-size: 13.5px; color: var(--pg-card-ink-2); }
.pg-ghl-body pre, .pg-ghl-code pre { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--pg-code-bg); color: var(--pg-code-ink); font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-ghl-body pre code, .pg-ghl-code pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.pg-ghl-body pre b { font-weight: 400; color: #8ab9ff; }
.pg-ghl-cfg { margin-right: -34px; align-self: center; width: min(100%, 400px); }
.pg-m-vis .pg-ghl-cfg { margin-right: -44px; width: 330px; }
.pg-ghl-m1 .pg-phc { width: 340px; }
.pg-ghl-m1 { justify-content: flex-end; }

.pg-tools-col .pg-ghl-code { position: relative; z-index: 2; margin-left: -50px; width: calc(100% + 50px); }
.pg-ghl-code { top: auto; }
.pg-ghl-code .k { color: #8ab9ff; }

.pg-ghl-ctl { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.pg-ghl-ctl .btn { min-height: 44px; padding: 0 20px; }
.pg-ghl-ctl .btn:disabled { opacity: .45; cursor: default; }
.pg-ghl-res { width: 100%; margin-left: -50px; width: calc(100% + 50px); }
.pg-ghl-res-body { padding: 16px 18px 20px; display: grid; gap: 10px; justify-items: start; }
.pg-ghl-res-body p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--pg-card-ink-2); }
.pg-ghl-badge { display: inline-block; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); }
.pg-ghl-badge.is-ok { background: color-mix(in srgb, #34c759 18%, transparent); color: #1f8a3c; }
.pg-ghl-badge.is-no { background: color-mix(in srgb, #ff3b30 14%, transparent); color: #c4281e; }
[data-theme="dark"] .pg-ghl-badge.is-ok { color: #6fdc8c; }
[data-theme="dark"] .pg-ghl-badge.is-no { color: #ff8a82; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pg-ghl-badge.is-ok { color: #6fdc8c; } :root:not([data-theme="light"]) .pg-ghl-badge.is-no { color: #ff8a82; } }
.pg-plan-foot { margin: 24px 0 0; text-align: center; color: var(--pg-ink-2); font-size: .98rem; }

@media (max-width: 900px) {
  .pg-ghl-vis { flex-direction: column; }
  .pg-ghl-vis .pg-ghl-wf, .pg-m-vis .pg-ghl-cfg { margin: 0 0 -8px; width: min(100%, 400px); }
  .pg-tools-col .pg-ghl-code, .pg-ghl-res { margin: -8px 0 0; width: 100%; }
}
/* ==== mp-groups-1 ==== */
/* Group chats and Multiple numbers feature pages. Both reuse the reactions moments (.pg-rx-*) and the cropped phone (.pg-dev).
   Only transform and opacity move, once, and not under reduced motion. */

/* group thread: a header with a cluster of faces, and a name above each incoming bubble */
.pg-gc-msg { align-self: flex-start; display: flex; flex-direction: column; gap: .8cqw; max-width: 80%; transform-origin: 0 100%; }
.pg-gc-msg .pg-bubble { max-width: 100%; align-self: flex-start; }
.pg-gc-who { margin-left: 4cqw; font-size: 3.1cqw; color: var(--pg-phone-meta); }
.pg-gc-hero .pg-rx-call { left: auto; right: -6%; bottom: 2%; width: min(290px, 70%); }
.pg-gc-page .pg-rx-vis .pg-dev { --pg-crop: 440px; }
.pg-gc-hero .pg-rx-call pre { font-size: 11.5px; }
@media (max-width: 900px) { .pg-gc-hero .pg-rx-call { right: 0; left: auto; } }
@media (max-width: 560px) { .pg-gc-page .pg-rx-vis .pg-dev { --pg-crop: 400px; } }
@media (max-width: 480px) { .pg-gc-hero .pg-rx-call { right: -4px; width: 70%; } .pg-gc-hero .pg-rx-call pre { font-size: 10.5px; } }

/* a row of pill choices (the demo picker for moments that are not a reaction) */
.pg-gc-seg { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin-top: 8px; padding: 6px; border-radius: 26px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line), var(--pg-lift); }
.pg-gc-seg button { border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2; color: var(--pg-ink-2); background: transparent; cursor: pointer; transition: transform .18s var(--pg-ease), background-color .15s ease, color .15s ease; }
.pg-gc-seg button:hover { background: var(--surface-2); color: var(--pg-ink); transform: translateY(-1px); }
.pg-gc-seg button:active { transform: scale(.97); }
.pg-gc-seg button:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 1px; }
.pg-gc-seg button[aria-pressed="true"] { background: var(--pg-blue); color: #fff; }
.imsg .pg-gc-req { max-width: 46ch; line-height: 1.5; font-size: 13.5px; overflow-wrap: anywhere; }
.pg-gc-req code { overflow-wrap: anywhere; }

/* moment two: copy beside the server log */
.pg-gc-two { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.pg-gc-console { display: flex; flex-direction: column; gap: 14px; }
.pg-gc-console .pg-gc-seg { margin-top: 0; }
.pg-gc-console .pg-rx-log { margin-top: 0; }
.pg-gc-console .pg-rx-log-body { min-height: 250px; }
@media (max-width: 860px) { .pg-gc-two { grid-template-columns: minmax(0, 1fr); } }

/* moment three: three request cards side by side */
.pg-gc-manage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pg-gc-manage .pg-code { position: static; }
.pg-gc-manage .pg-code pre { font-size: 12.5px; }
.pg-gc-manage.pg-mn-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .pg-gc-manage, .pg-gc-manage.pg-mn-add { grid-template-columns: minmax(0, 1fr); } }

/* multiple numbers: a card of lines under one key */
.pg-mn-hero { display: grid; place-items: center; padding: 16px 0 28px; }
.pg-mn-card { width: min(100%, 500px); padding: 10px; border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line), var(--pg-lift); text-align: left; }
.pg-mn-key { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 10px 16px; }
.pg-mn-line { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(0, 150px); align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; transition: background-color .2s ease, box-shadow .2s ease; }
.pg-mn-line + .pg-mn-line { margin-top: 4px; }
.pg-mn-dot { width: 10px; height: 10px; border-radius: 50%; background: #34c759; }
.pg-mn-id b { display: block; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; color: var(--pg-ink); font-variant-numeric: tabular-nums; }
.pg-mn-id small, .pg-mn-use small, .pg-mn-sum small { display: block; margin-top: 2px; font-size: 13px; color: var(--pg-ink-3); font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); }
.pg-mn-use small { font-family: inherit; }
.pg-mn-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pg-mn-bar i { display: block; height: 100%; border-radius: 99px; background: var(--pg-blue); transform-origin: 0 50%; transform: scaleX(var(--w)); }
@media (prefers-reduced-motion: no-preference) { .pg-mn-bar i { animation: pg-mn-bar .9s var(--pg-ease) .2s both; } }
@keyframes pg-mn-bar { from { transform: scaleX(0); } to { transform: scaleX(var(--w)); } }
.pg-mn-route .pg-mn-line.is-on, .pg-mn-swap .pg-mn-line.is-on { background: color-mix(in srgb, var(--pg-blue) 11%, transparent); box-shadow: inset 0 0 0 1.5px var(--pg-blue); }
.pg-mn-route .pg-mn-line:not(.is-on) { opacity: .62; }
.pg-mn-vis { width: min(100%, 500px); }
.pg-mn-vis .pg-mn-card { width: 100%; }
.pg-mn-one { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); }
.pg-mn-two { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
@media (max-width: 860px) { .pg-mn-one, .pg-mn-two { grid-template-columns: minmax(0, 1fr); } .pg-mn-one .pg-rx-copy { order: -1; } }
.pg-mn-sum { padding: 14px 18px 18px; }
.pg-mn-sum b { display: block; font-size: clamp(34px, 4.4vw, 52px); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; color: var(--pg-ink); }
.pg-mn-sum small { font-family: inherit; font-size: 14px; margin-top: 8px; max-width: 34ch; line-height: 1.45; }
.pg-mn-keeps { list-style: none; margin: 4px 0 0; padding: 4px 18px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-mn-keeps li { padding: 7px 12px; border-radius: 999px; font-size: 13.5px; color: var(--pg-ink-2); background: var(--surface-2); }
.pg-mn-keeps li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #34c759; vertical-align: middle; }
.pg-mn-btn { margin-top: 12px; }
@media (max-width: 480px) { .pg-mn-line { grid-template-columns: 10px minmax(0, 1fr); gap: 6px 12px; } .pg-mn-use { grid-column: 2; } }
/* ==== mp-crmlead-1 ==== */
/* The CRM and lead follow-up pages: a pane card that a picker swaps, a moment grid, the example form, and the one-time arrival of a hero card.
   Phones, code cards, tables, rows and plan tiles are the shared parts above. Only transform and opacity move, once, and not under reduced motion. */
.pg { --pg-warn: #b42318; }
[data-theme="dark"] .pg { --pg-warn: #ffb4a9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pg { --pg-warn: #ffb4a9; } }

/* a card that arrives once: visible without script, held back only while the script has .pg-await on it */
.pg-late { transition: opacity .5s var(--pg-ease), transform .5s var(--pg-ease); }
.pg-late.pg-await { opacity: 0; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) { .pg-late, .pg-late.pg-await { transition: none; opacity: 1; transform: none; } }
.pg-rx-call.is-kv { width: min(290px, 66%); }
.pg-rx-call.is-kv .pg-kv-head { padding: 12px 16px; }
.pg-rx-call.is-kv .pg-kv-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px 14px; }
@media (max-width: 480px) { .pg-rx-call.is-kv { left: -4px; width: 70%; } }

/* a moment: copy and one visual on one grid, centred on each other */
.pg-ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pg-ct-grid.is-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.pg-ct-grid.is-flip .pg-ct-vis { order: -1; }
.pg-ct-grid.is-phone { grid-template-columns: 360px minmax(0, 1fr); }
.imsg .pg-ct-grid .pg-rx-copy h2 { font-size: clamp(36px, 4.4vw, 60px); }
.pg-ct-grid .pg-rx-copy .pg-pick { margin: 26px 0 0; }
.pg-ct-vis { min-width: 0; }
.pg-ct-vis .pg-code { position: static; }
.pg-ct-code pre { font-size: 13.5px; padding: 20px 22px 24px; }
@media (max-width: 900px) {
  .pg-ct-grid, .pg-ct-grid.is-flip, .pg-ct-grid.is-phone { grid-template-columns: minmax(0, 1fr); }
  .pg-ct-grid .pg-rx-copy { order: -1; }
  .pg-ct-grid .pg-ct-vis { order: 0; }
  .pg-ct-grid.is-phone .pg-rx-vis { margin-inline: auto; }
}

/* the pane card: a title and a tag, then a few labelled rows. Every pane sits in one grid cell, so the card keeps the height of the tallest. */
.pg-kv {
  text-align: left; background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
}
.pg-kv.is-stack { display: grid; }
.pg-kv.is-stack > .pg-kv-pane { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s; }
.pg-kv.is-stack > .pg-kv-pane.is-on { visibility: visible; opacity: 1; transition: opacity .25s ease; }
@media (prefers-reduced-motion: reduce) { .pg-kv.is-stack > .pg-kv-pane, .pg-kv.is-stack > .pg-kv-pane.is-on { transition: none; } }
.pg-kv-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--pg-card-line); }
.pg-kv-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pg-kv-tag { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--pg-chip-bg); color: var(--pg-chip-ink); }
.pg-kv-tag.is-warn { background: color-mix(in srgb, #d92d20 13%, transparent); color: var(--pg-warn); }
.pg-kv-body { margin: 0; display: grid; }
.pg-kv-row { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 4px 20px; padding: 18px 22px; border-top: 1px solid var(--pg-card-line); }
.pg-kv-row:first-child { border-top: 0; }
.pg-kv-row dt { font-size: 13.5px; font-weight: 600; color: var(--pg-card-ink-2); line-height: 1.5; }
.pg-kv-row dd { margin: 0; font-size: 16px; line-height: 1.5; }
.pg-kv code { background: color-mix(in srgb, var(--pg-card-ink) 8%, transparent); border-color: var(--pg-card-line); }
@media (max-width: 480px) { .pg-kv-row { grid-template-columns: minmax(0, 1fr); } .pg-kv-head, .pg-kv-row { padding-inline: 18px; } }

/* two controls under a phone and a line of status */
.pg-ld-ctl { margin-top: 10px; }
.pg-ld-ctl .pg-pick { margin: 0 0 12px; }
.pg-ld-ctl .pg-pick button:disabled { opacity: .45; cursor: default; pointer-events: none; }
.imsg .pg-ld-status { margin: 0; min-height: 3em; font-size: 14.5px; line-height: 1.5; color: var(--pg-ink-3); text-align: left; }
.imsg .pg-ld-status.is-warn { color: var(--pg-warn); }
@media (prefers-reduced-motion: no-preference) { .pg-bubble.pg-pop { animation: pg-ap-pop .35s var(--pg-ease) both; } }
@keyframes pg-ap-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

/* the example form */
.pg-frm-body { padding: 20px 22px 24px; display: grid; gap: 16px; }
.pg-frm-f { display: grid; gap: 6px; }
.pg-frm-f span { font-size: 13.5px; font-weight: 600; color: var(--pg-card-ink-2); }
.pg-frm-f i { font-style: normal; font-size: 16px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--pg-card-line); }
.pg-frm-c { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--pg-card-ink-2); }
.pg-frm-c b { position: relative; width: 22px; height: 22px; border-radius: 6px; background: var(--pg-blue); }
.pg-frm-c b::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.pg-frm-btn { margin-top: 4px; text-align: center; font-size: 16px; font-weight: 600; padding: 14px; border-radius: 99px; background: var(--pg-blue); color: #fff; }
@media (max-width: 560px) { .pg-ct-grid.is-phone .pg-rx-vis .pg-dev { --pg-w: 300px; --pg-crop: 460px; } .pg-ct-grid.is-phone .pg-rx-vis { width: 300px; margin-inline: 0; } }
/* ==== mp-appts-1 ==== */
/* Appointment reminders (.pg-ap-*) and Integrations (.pg-ig-*). Both pages sit on the reactions page grid (.pg-rx-page: one spacing token,
   .pg-rx-head, .pg-rx-copy, .pg-rx-two, .pg-dev phones). Only transform and opacity move, once, and not under reduced motion. */
.pg-ap-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pg-ap-grid.is-flip { grid-template-columns: 360px minmax(0, 1fr); }
@media (max-width: 900px) { .pg-ap-grid, .pg-ap-grid.is-flip { grid-template-columns: minmax(0, 1fr); } .pg-ap-grid.is-flip .pg-rx-copy { order: -1; } }

/* the booking system: tomorrow's appointments and the job that texts them */
.pg-ap-job { background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 22px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); overflow: hidden; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-ap-job-head { display: flex; align-items: baseline; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--pg-card-line); }
.pg-ap-job-head b { font-size: 16px; font-weight: 600; }
.pg-ap-job-head small { margin-left: auto; font-size: 13px; color: var(--pg-card-ink-2); }
.pg-ap-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--pg-card-line); }
.pg-ap-row b { font-size: 15.5px; font-weight: 600; }
.pg-ap-row small { grid-column: 1; font-size: 13.5px; color: var(--pg-card-ink-2); }
.pg-ap-st { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: color-mix(in srgb, var(--pg-card-ink) 8%, transparent); color: var(--pg-card-ink-2); }
.pg-ap-st svg { width: 12px; height: 12px; display: none; }
.pg-ap-st.is-done { background: color-mix(in srgb, var(--pg-blue) 13%, transparent); color: var(--pg-chip-ink); }
.pg-ap-st.is-done svg { display: block; }
.pg-ap-st.is-warn { background: color-mix(in srgb, #ff9f0a 18%, transparent); color: #a65f00; }
[data-theme="dark"] .pg-ap-st.is-warn { color: #ffc766; }
.pg-ap-st.is-stop { background: color-mix(in srgb, #ff453a 15%, transparent); color: #c4231a; }
[data-theme="dark"] .pg-ap-st.is-stop { color: #ff8a82; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pg-ap-st.is-warn { color: #ffc766; } :root:not([data-theme="light"]) .pg-ap-st.is-stop { color: #ff8a82; } }
@media (prefers-reduced-motion: no-preference) { .pg-ap-st.is-pop { animation: pg-ap-pop .4s var(--pg-ease) both; } }
@keyframes pg-ap-pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
.pg-ap-job-foot { display: flex; align-items: center; gap: 14px; padding: 16px 22px 18px; }
.pg-ap-job-foot small { font-size: 13px; color: var(--pg-card-ink-2); line-height: 1.4; }
.pg-ap-job-foot .btn { flex: none; min-height: 40px; padding: 0 18px; font-size: 14.5px; }

/* the confirm demo: a row of three different replies, and the booking system's side */
.pg-ap-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pg-ap-pick button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 99px; cursor: pointer; color: var(--pg-ink); background: var(--surface); border: 1px solid var(--pg-line); transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s var(--pg-ease); }
.pg-ap-pick button:hover { border-color: color-mix(in srgb, var(--pg-blue) 45%, transparent); color: var(--pg-blue); }
.pg-ap-pick button:active { transform: scale(.97); }
.pg-ap-pick button[aria-pressed="true"] { background: var(--pg-blue); border-color: var(--pg-blue); color: #fff; }
.pg-ap-pick button:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 2px; }
.pg-ap-srv { margin-top: 32px; }
.pg-ap-appt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 14px 18px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--pg-code-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.pg-ap-appt b { font-size: 14.5px; font-weight: 600; }
.pg-ap-appt small { grid-column: 1; font-size: 12.5px; color: var(--pg-code-dim); }
.pg-ap-appt .pg-ap-st { background: rgba(255, 255, 255, .1); color: var(--pg-code-dim); }
.pg-ap-appt .pg-ap-st.is-done { background: rgba(10, 132, 255, .28); color: #cfe0ff; }
.pg-ap-appt .pg-ap-st.is-warn { background: rgba(255, 159, 10, .22); color: #ffc766; }
.pg-ap-appt .pg-ap-st.is-stop { background: rgba(255, 69, 58, .22); color: #ff8a82; }
.pg-ap-srv .pg-rx-log-body { min-height: 150px; }
.pg-ap-srv .pg-ap-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--pg-code-dim); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }

/* the waitlist phone reveals one bubble at a time, once */
.pg-ap-seq > .pg-pend { display: none; }
.pg-ap-seq > .pg-shown { animation: pg-m-pop .5s var(--pg-ease) both; transform-origin: 0 100%; }
.pg-ap-seq > .pg-shown.out { transform-origin: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .pg-ap-seq > .pg-shown { animation: none; } }

/* three ways to get the first text */
.pg-ap-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.pg-ap-tile { grid-column: span 4; display: flex; flex-direction: column; gap: 28px; padding: 28px 26px 26px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line); min-width: 0; }
.pg-ap-tile:nth-child(1) { grid-column: span 5; }
.pg-ap-tile:nth-child(2) { grid-column: span 3; }
.pg-ap-vis { min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; --tb-ring: var(--surface); }
.pg-ap-vis .pg-rx-bub { align-self: flex-start; font-size: 17px; padding: 13px 20px; max-width: 100%; }
.pg-ap-vis .pg-rx-bub.is-out { align-self: flex-end; }
.pg-ap-tile h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.pg-ap-tile p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--pg-ink-2); }
.pg-ap-fake { align-self: flex-start; display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 99px; background: var(--pg-blue); color: #fff; font-size: 15px; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.pg-ap-qr { align-self: flex-start; width: 112px; height: 112px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--pg-line); color: #101318; }
.pg-ap-qr svg { display: block; width: 100%; height: 100%; }
@media (max-width: 900px) { .pg-ap-tile, .pg-ap-tile:nth-child(n) { grid-column: span 12; } .pg-ap-vis { min-height: 0; } }

/* the connection console in the integrations hero */
.pg-ig-hero { position: relative; display: grid; place-items: center; padding: 16px 0 28px; }
.pg-ig-con { width: min(100%, 520px); background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 24px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); overflow: hidden; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-ig-con-head { display: flex; align-items: center; gap: 8px; padding: 16px 22px; border-bottom: 1px solid var(--pg-card-line); font-size: 14px; color: var(--pg-card-ink-2); }
.pg-ig-con-head i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--pg-card-ink) 18%, transparent); }
.pg-ig-con-head span { margin-left: 6px; }
.pg-ig-con-head b { color: var(--pg-card-ink); font-weight: 600; }
.pg-ig-con-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--pg-card-line); }
.pg-ig-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: var(--pg-card-ink); background: color-mix(in srgb, var(--pg-card-ink) 8%, transparent); }
.pg-ig-con-row b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
.pg-ig-con-row small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--pg-card-ink-2); line-height: 1.35; }
.pg-ig-con-row.is-soon { opacity: .72; }
.pg-ig-con-foot { padding: 16px 22px 18px; font-size: 14px; line-height: 1.5; color: var(--pg-card-ink-2); }
.pg-ig-con-foot code { font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) { .pg-ig-con-row, .pg-ig-con-foot { animation: pg-m-pop .55s var(--pg-ease) var(--d, 0s) both; } }
@media (max-width: 900px) { .pg-ig-hero { max-width: 520px; justify-self: start; width: 100%; } }
@media (max-width: 420px) { .pg-ig-con-row { grid-template-columns: 36px minmax(0, 1fr); } .pg-ig-con-row .pg-chip { grid-column: 2; justify-self: start; } .pg-ig-mark { width: 36px; height: 36px; } }

/* pick a tool: three boxes, who talks to whom */
.pg-ig-flowcard { background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 28px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); padding: clamp(22px, 3.4vw, 44px); text-align: left; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-ig-flow { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.pg-ig-node { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--pg-card-line); min-height: 116px; }
.pg-ig-node small { font-size: 12.5px; font-weight: 600; color: var(--pg-card-ink-2); }
.pg-ig-node b { font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.pg-ig-node.is-zs { background: color-mix(in srgb, var(--pg-blue) 9%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pg-blue) 55%, transparent); }
.pg-ig-arr { display: grid; place-items: center; color: var(--pg-blue); }
.pg-ig-arr svg { width: 34px; height: 14px; }
.pg-ig-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--pg-card-line); }
.pg-ig-cap p { flex: 1 1 360px; margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--pg-card-ink-2); max-width: 70ch; }
.pg-ig-cap code { font-size: .85em; }
.pg-ig-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pg-ig-pick button { font: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 16px; border-radius: 99px; cursor: pointer; color: var(--pg-card-ink); background: transparent; border: 1px solid var(--pg-card-line); transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s var(--pg-ease); }
.pg-ig-pick button:hover { border-color: color-mix(in srgb, var(--pg-blue) 45%, transparent); color: var(--pg-blue); }
.pg-ig-pick button:active { transform: scale(.97); }
.pg-ig-pick button[aria-pressed="true"] { background: var(--pg-blue); border-color: var(--pg-blue); color: #fff; }
.pg-ig-pick button:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .pg-ig-flow.is-swap .pg-ig-node, .pg-ig-flow.is-swap + .pg-ig-cap { animation: pg-m-pop .4s var(--pg-ease) both; } }
@media (max-width: 760px) {
  .pg-ig-flow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pg-ig-node { min-height: 0; }
  .pg-ig-arr svg { transform: rotate(90deg); }
}

/* the terminal and the fan-out */
.pg-ig-term { position: static; }
.pg-ig-term pre { font-size: 13px; }
.pg-ig-fan { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); gap: 6px; align-items: center; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-ig-fan .pg-ig-node { background: var(--pg-card-bg); color: var(--pg-card-ink); box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); min-height: 0; }
.pg-ig-fan .pg-ig-node.is-zs { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--pg-blue) 55%, transparent), var(--pg-lift); background: color-mix(in srgb, var(--pg-blue) 7%, var(--pg-card-bg)); }
.pg-ig-fan .pg-code-badge { align-self: flex-start; margin-top: 6px; }
.pg-ig-outs { display: grid; gap: 10px; }
.pg-ig-outs .pg-ig-node { padding: 14px 16px; }
.pg-ig-outs .pg-ig-node b { font-size: 16px; }
@media (max-width: 760px) { .pg-ig-fan { grid-template-columns: minmax(0, 1fr); gap: 4px; } .pg-ig-fan .pg-ig-arr svg { transform: rotate(90deg); } }

/* big numbers */
.pg-ig-stats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.pg-ig-stat { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(26px, 3vw, 40px); border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line); min-width: 0; }
.pg-ig-stat:nth-child(1) { grid-column: span 5; }
.pg-ig-stat:nth-child(3) { grid-column: span 3; }
.pg-ig-stat strong { display: block; font-size: clamp(72px, 10vw, 148px); font-weight: 400; line-height: .95; letter-spacing: -.04em; color: var(--pg-ink); }
.pg-ig-stat p { margin: 0; max-width: 24ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.4; color: var(--pg-ink-2); }
@media (max-width: 900px) { .pg-ig-stat, .pg-ig-stat:nth-child(n) { grid-column: span 12; gap: 24px; } }

/* the one connections table: group rows split the four kinds */
.pg-ig-table .pg-table tbody th { width: 22%; }
.pg-ig-table .pg-table tbody tr.pg-ig-group th { width: auto; padding: 12px 20px; background: var(--surface-2); color: var(--pg-ink-3); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pg-ig-table .pg-table tbody tr.pg-ig-group:hover { background: transparent; }
.pg-ig-table .pg-table td:last-child { width: 26%; }
@media (max-width: 720px) { .pg-ig-table .pg-table tbody tr.pg-ig-group th { display: block; padding: 0; background: none; } .pg-ig-table .pg-table tbody tr.pg-ig-group { padding: 12px 18px; background: var(--surface-2); } }
.pg-rx-call.pg-ap-call { width: min(292px, 66%); }
.pg-ap-call pre { font-size: 12px; }
@media (max-width: 480px) { .pg-rx-call.pg-ap-call { width: 76%; } .pg-ap-call pre { font-size: 10.5px; } }
/* the confirm demo: copy and the booking system on the left, the phone on the right; on a phone the order is copy, phone, booking system */
.pg-ap-demo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "copy vis" "srv vis"; column-gap: clamp(32px, 6vw, 96px); row-gap: 32px; align-items: center; }
.pg-ap-demo > .pg-rx-copy { grid-area: copy; align-self: end; }
.pg-ap-demo > .pg-rx-vis { grid-area: vis; }
.pg-ap-demo > .pg-ap-srv { grid-area: srv; margin-top: 0; align-self: start; }
@media (max-width: 860px) { .pg-ap-demo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "vis" "srv"; } .pg-ap-demo > .pg-rx-vis { width: min(100%, 360px); } }
.pg-ap-pick { gap: 6px; }
.pg-ap-pick button { padding: 8px 11px; }
/* ==== mp-usecase1-1 ==== */
/* Sign in with iMessage and Failed payment recovery. Motion is transform and opacity only. */
.pg-si-stage { display: flex; align-items: center; justify-content: center; }
.pg-si-card {
  position: relative; z-index: 2; flex: none; width: min(100%, 380px); margin-right: -34px; padding: 24px 24px 22px; text-align: left;
  background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 22px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
}
.pg-si-app { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pg-si-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; background: linear-gradient(180deg, #f6c94a, #e89a14); }
.pg-si-title { margin: 22px 0 16px; min-height: 2.4em; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.pg-si-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 18px; border: 0; border-radius: 13px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; background: #0b84fe; color: #fff;
  transition: background-color .15s ease, transform .15s var(--pg-ease), opacity .15s ease;
}
.pg-si-btn:hover:not(:disabled) { background: #0a74e0; transform: scale(1.015); }
.pg-si-btn:active:not(:disabled) { transform: scale(.97); }
.pg-si-btn:focus-visible { outline: 3px solid color-mix(in srgb, #0b84fe 45%, transparent); outline-offset: 3px; }
.pg-si-btn:disabled { opacity: .55; cursor: default; }
.pg-si-btn.is-alt { background: color-mix(in srgb, var(--pg-card-ink) 9%, transparent); color: var(--pg-card-ink); }
.pg-si-btn.is-alt:hover:not(:disabled) { background: color-mix(in srgb, var(--pg-card-ink) 14%, transparent); }
.pg-si-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.pg-si-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; opacity: .5; transition: opacity .3s ease; }
.pg-si-steps li::before {
  content: ""; grid-row: 1 / span 2; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pg-card-ink) 35%, transparent);
}
.pg-si-steps li.is-on { opacity: 1; }
.pg-si-steps li.is-on::before {
  box-shadow: none; background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pg-si-steps b { font-size: 14px; font-weight: 600; }
.pg-si-steps small { grid-column: 2; font-size: 12.5px; line-height: 1.35; color: var(--pg-card-ink-2); }
.pg-si-phc { height: 480px; }
@keyframes pg-si-ring { from { opacity: .8; transform: scale(.85); } to { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { @media (max-width: 900px) {
  .pg-si-stage { flex-direction: column; }
  .pg-si-card { margin: 0 0 -12px; }
  .pg-si-phc { height: 440px; }
}

/* the devices moment: one sign-in page, three situations */
.pg-si-dev { flex: none; width: min(100%, 520px); min-height: 360px; background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 22px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); overflow: hidden; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-si-dev-head { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--pg-card-line); font-size: 13.5px; color: var(--pg-card-ink-2); }
.pg-si-dev-head i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--pg-card-ink) 18%, transparent); }
.pg-si-dev-head span { margin-left: 8px; font-weight: 600; }
.pg-si-dev-pane { display: none; padding: 32px 28px 30px; }
.pg-si-dev-pane.is-on { display: block; }
.pg-si-dev-pane > .pg-si-btn { max-width: 300px; margin: 0 auto; }
.pg-si-dev-pane p { margin: 18px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--pg-card-ink-2); }
.pg-si-dev-pane > .pg-si-btn + p { text-align: center; }
.pg-si-dev-pane code { font-size: .88em; background: color-mix(in srgb, var(--pg-card-ink) 7%, transparent); border-color: transparent; color: inherit; }
.pg-si-qrrow { display: flex; align-items: center; gap: 22px; }
.pg-si-qrrow b { font-size: 17px; font-weight: 600; }
.pg-si-qrrow p { margin-top: 10px; }
.pg-si-qr { flex: none; width: 132px; height: 132px; padding: 10px; border-radius: 14px; background: #fff; color: #101318; box-shadow: 0 0 0 1px var(--pg-card-line); }
.pg-si-status { display: flex; align-items: center; gap: 9px; margin-top: 24px !important; font-size: 14px !important; font-weight: 600; color: var(--pg-card-ink-2) !important; }
.pg-si-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .6; }
.pg-si-status.is-done { color: #1f9d55 !important; }
.pg-si-status.is-done::before { opacity: 1; }
@media (max-width: 560px) { .pg-si-qrrow { flex-direction: column; align-items: flex-start; } }

/* the provider moment: one code card at a time, never sticky */
.pg-m-vis.is-code { align-items: flex-start; justify-content: flex-start; }
.pg-si-pane { display: none; position: static; width: 100%; max-width: 620px; }
.pg-si-pane.is-on { display: block; }

/* failed payments: hero, link card, plain and live links */
.pg-fp-hero .pg-sl-body { min-height: 336px; }
.pg-fp-url { word-break: break-word; }
.pg-fp-url.is-live { color: #0b84fe; text-decoration: underline; text-underline-offset: 2px; }
.pg-fp-note { position: relative; z-index: 2; flex: none; width: min(100%, 320px); margin-left: -64px; align-self: center; }
.pg-fp-code { position: static; box-shadow: var(--pg-lift); }
.pg-fp-code pre { font-size: 12.5px; padding: 14px 16px 16px; white-space: pre; overflow-x: auto; }
@media (max-width: 900px) { .pg-fp-note { margin: -34px 0 0; } }
.pg-fp-links { flex: none; width: min(100%, 560px); min-height: 300px; padding: 28px 30px 24px; background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 22px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-fp-lp { display: none; }
.pg-fp-lp.is-on { display: block; }
.pg-fp-lp h3 { margin: 0 0 20px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; }
.pg-fp-lp dl { margin: 0; }
.pg-fp-lp dt { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--pg-card-ink-2); }
.pg-fp-lp dd { margin: 6px 0 20px; font-size: 16px; line-height: 1.5; }
.pg-fp-lp dd:last-child { margin-bottom: 0; }
.pg-fp-lp code { font-size: .88em; background: color-mix(in srgb, var(--pg-card-ink) 7%, transparent); border-color: transparent; color: inherit; }
.pg-fp-chart { flex: none; width: min(100%, 560px); padding: 22px 24px 24px; background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 22px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-fp-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pg-fp-chart-head b { font-size: 15px; font-weight: 600; }
.pg-fp-chart-head small { flex: none; font-size: 12.5px; color: var(--pg-card-ink-2); }
.pg-fp-cols { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; height: 230px; margin-top: 20px; }
.pg-fp-col { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; min-width: 0; }
.pg-fp-bar { align-self: stretch; width: 100%; background: #0b84fe; border-radius: 8px 8px 3px 3px; transform-origin: 50% 100%; transform: scaleY(.02); transition: transform .6s var(--pg-ease); }
.pg-fp-col b { margin-top: 8px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pg-fp-col small { font-size: 11px; color: var(--pg-card-ink-2); white-space: nowrap; }
.pg-fp-cap { min-height: 4.6em; margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--pg-card-ink-2); }
@media (prefers-reduced-motion: reduce) { .pg-fp-bar { transition: none; } }
@media (max-width: 560px) { .pg-fp-cols { gap: 5px; } .pg-fp-chart { padding: 20px 16px 22px; } .pg-fp-col small { font-size: 10px; } }
.pg-si-pane pre { white-space: pre; overflow-wrap: normal; font-size: 12.5px; }
body.arc-concept .imsg .pg-herox h1.pg-h1w { max-width: 24ch; }
.pg-fp-cap { margin-top: 28px; }
/* ==== mp-polls-1 ==== */
/* The polls and threads feature pages: moments on the homepage background, one grid, one spacing token. Phones are the .pg-dev frame above;
   the poll pills are polls-demo.css, the thread line is thread-demo.css, tails and tapbacks are the shared parts.
   Only transform and opacity move, once, and not under reduced motion. */
.pg-pt-page { --pg-pt-gap: clamp(120px, 12vw, 200px); }
.arc-concept .pg-pt-page .pg-hero.hero-with-phone h1 { font-weight: 400; letter-spacing: -.04em; }
.imsg.pg-pt-page section.pg-sec, .imsg.pg-pt-page section.pg-pt-faq { padding: calc(var(--pg-pt-gap) / 2) 0; }
body.arc-concept .imsg.pg-pt-page section.pg-hero { padding-bottom: calc(var(--pg-pt-gap) / 2); }
@media (max-width: 560px) { .pg-pt-page .pg-dev { --pg-w: 300px; --pg-crop: 460px; } }

.imsg .pg-pt-head, .imsg .pg-pt-copy { max-width: 760px; }
.imsg .pg-pt-head { margin: 0 0 clamp(28px, 4vw, 48px); }
.imsg .pg-pt-head h2, .imsg .pg-pt-copy h2 { margin: 0; font-size: clamp(38px, 5.4vw, 76px); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.imsg .pg-pt-head p, .imsg .pg-pt-copy p { max-width: 46ch; margin: 18px 0 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--pg-ink-2); }
.pg-pt-one, .pg-pt-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pg-pt-two { grid-template-columns: minmax(0, 1fr) 360px; }
.pg-pt-vis { width: min(100%, 360px); }
.pg-pt-vis.is-wide { width: 100%; }
.pg-pt-vis .pg-dev { --pg-w: 360px; --pg-crop: 540px; }
@media (max-width: 860px) { .pg-pt-one, .pg-pt-two { grid-template-columns: minmax(0, 1fr); } .pg-pt-two .pg-pt-copy { order: -1; } }

/* the hero scene: a phone with the request laid over its corner */
.pg-pt-hero { position: relative; display: grid; place-items: center; padding: 16px 0 64px; }
.pg-pt-hero .pg-dev { --pg-w: 340px; --pg-crop: 520px; z-index: 1; }
.pg-pt-call { position: absolute; z-index: 2; left: 2%; bottom: 0; width: min(270px, 62%); }
.pg-pt-call .pg-code { position: static; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), var(--pg-lift); }
.pg-pt-call pre { font-size: 12px; padding: 14px 16px 16px; }
@media (max-width: 900px) { .pg-pt-hero { max-width: 460px; justify-self: center; width: 100%; } }
@media (max-width: 480px) { .pg-pt-call { left: -4px; width: 68%; } .pg-pt-call pre { font-size: 11px; padding: 12px; } }

/* a server log: the event your endpoint receives */
.pg-pt-log { margin-top: 32px; background: #12161e; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), var(--pg-lift); }
.pg-pt-log .pg-code-head { color: #8c96a8; }
.pg-pt-log-body { padding: 8px 18px 18px; min-height: 250px; display: flex; flex-direction: column; gap: 14px; }
.pg-pt-evt { font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 12.5px; line-height: 1.6; color: var(--pg-code-ink); }
.pg-pt-evt .c { color: var(--pg-code-dim); display: block; }
.pg-pt-evt pre { margin: 6px 0 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.pg-pt-evt.is-old { opacity: .45; }
.pg-pt-evt.is-wait { color: var(--pg-code-dim); }
@media (prefers-reduced-motion: no-preference) { .pg-pt-evt.is-new { animation: pg-pt-evt .5s var(--pg-ease) both; } }
@keyframes pg-pt-evt { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pg-pt-vis .pg-pick { margin: 14px 0 0; }
.pg-pt-vis .pg-pick.is-center { justify-content: center; }
.imsg .pg-pt-live { margin: 14px 0 0; font-size: 13px; color: var(--pg-ink-3); }
.pg-pt-live code { font-size: inherit; }

/* the poll bubble: the shared amber pills (css/polls-demo.css) on the phone's own gray bubble, sized in the screen's container units */
.pg-dev .pg-poll {
  --poll-amber: #F3BF6E; --poll-cream: #FCEFE0; --poll-amber-ink: #B97A1E; --poll-avatar: #5E5E63;
  width: 78%; max-width: 78%; padding: 3.4cqw 3.4cqw 3.8cqw; border-radius: 5.6cqw;
}
[data-theme="dark"] .pg-dev .pg-poll { --poll-cream: rgba(243, 191, 110, .18); --poll-amber-ink: #F5C77E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pg-dev .pg-poll { --poll-cream: rgba(243, 191, 110, .18); --poll-amber-ink: #F5C77E; } }
.pg-poll .poll-sub { margin: 0 0 2.4cqw 1cqw; font-size: 3.4cqw; line-height: 1.3; color: var(--pg-phone-meta); }
.pg-poll .poll-opts { margin: 0; gap: 2cqw; }
.pg-poll .poll-opt {
  height: 8.6cqw; padding: 0 1.6cqw 0 3.6cqw; font-size: 4.3cqw; border: 0; text-align: left; font-family: inherit; line-height: 1;
  transition: transform .15s var(--pg-ease); -webkit-appearance: none; appearance: none;
}
.pg-poll button.poll-opt { cursor: pointer; }
.pg-poll button.poll-opt:hover { transform: scale(1.025); }
.pg-poll button.poll-opt:active { transform: scale(.97); }
.pg-poll button.poll-opt:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 2px; }
.pg-poll .poll-end { height: 6cqw; min-width: 6cqw; }
.pg-poll .poll-ring { width: 4.6cqw; height: 4.6cqw; margin-right: .6cqw; }
.pg-poll .poll-face { width: 6cqw; height: 6cqw; font-size: 2.6cqw; margin-left: -.6cqw; }

/* build a poll: the form on one side, the request it makes on the other */
.pg-pl-build { display: grid; gap: 14px; }
.pg-pl-form { padding: 22px 22px 20px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line), var(--pg-lift); }
.pg-pl-form label { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--pg-ink-3); }
.pg-pl-form input {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--pg-ink); background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px;
  transition: border-color .15s ease, background-color .15s ease;
}
.pg-pl-form input:hover { border-color: var(--pg-line); }
.pg-pl-form input:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 40%, transparent); outline-offset: 0; border-color: var(--pg-blue); }
.pg-pl-opts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pg-pl-opts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pg-pl-x {
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--pg-ink-3);
  transition: background-color .15s ease, color .15s ease, transform .15s var(--pg-ease);
}
.pg-pl-x svg { width: 14px; height: 14px; }
.pg-pl-x:hover:not(:disabled) { background: var(--surface-2); color: var(--pg-ink); }
.pg-pl-x:active:not(:disabled) { transform: scale(.9); }
.pg-pl-x:disabled { opacity: .3; cursor: default; }
.pg-pl-x:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 1px; }
.pg-pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pg-pl-foot .pg-pick { margin: 0; }
.pg-pl-foot .pg-pick button:disabled { opacity: .4; cursor: default; pointer-events: none; }
.imsg .pg-pl-note { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--pg-ink-3); min-height: 1.4em; }
.imsg .pg-pl-note.is-bad { color: #c8412f; }
[data-theme="dark"] .imsg .pg-pl-note.is-bad { color: #ff8a78; }
.pg-pl-build .pg-code { position: static; }
.pg-pl-build .pg-code pre { font-size: 12.5px; min-height: 9.5em; }

/* the tally: bars grow once, and sit at their final size whether or not they play */
.pg-pl-tally { width: 100%; padding: 26px 26px 22px; border-radius: 28px; background: var(--pg-card-bg); color: var(--pg-card-ink); box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-pl-tally header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pg-pl-tally header b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.pg-pl-tally header span { font-size: 13.5px; color: var(--pg-card-ink-2); }
.pg-pl-tally ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pg-pl-row-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; font-weight: 600; }
.pg-pl-row-top span { font-variant-numeric: tabular-nums; color: var(--pg-card-ink-2); font-weight: 500; }
.pg-pl-bar { height: 12px; margin-top: 8px; border-radius: 99px; background: color-mix(in srgb, var(--pg-card-ink) 8%, transparent); overflow: hidden; }
.pg-pl-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: #F3BF6E; transform-origin: 0 50%; }
.pg-pl-bar i.is-play { animation: pg-pl-grow .9s var(--pg-ease) both; }
@keyframes pg-pl-grow { from { transform: scaleX(0); } to { transform: none; } }
.pg-pl-voters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pg-pl-voters span { padding: 2px 9px; border-radius: 99px; font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 12px; background: color-mix(in srgb, var(--pg-card-ink) 7%, transparent); color: var(--pg-card-ink-2); }
.pg-pl-tally footer { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--pg-card-line); font-size: 13px; color: var(--pg-card-ink-2); }
.pg-pl-tally footer code { background: color-mix(in srgb, var(--pg-card-ink) 7%, transparent); border-color: transparent; color: inherit; }

/* threads: the quoted original, then the reply under it */
.pg-th-quote { align-self: flex-end; max-width: 82%; padding: 1.8cqw 3.4cqw; border-radius: 4.4cqw; font-size: 3.7cqw; line-height: 1.25; background: var(--pg-blue); color: #fff; opacity: .5; margin-bottom: 1.2cqw; }
.pg-th-quote.is-in { align-self: flex-start; background: var(--pg-bubble-in); color: var(--pg-phone-ink); opacity: .75; }
.pg-th-reply { display: flex; flex-direction: column; gap: 0; }
.pg-th-reply .pg-bubble { position: relative; z-index: 1; }
.pg-dev .pg-th-mark { box-shadow: 0 0 0 .8cqw color-mix(in srgb, var(--pg-blue) 45%, transparent); }
.pg-dev .pg-bubble.in.pg-th-mark { box-shadow: 0 0 0 .8cqw color-mix(in srgb, var(--pg-ink-3) 55%, transparent); }
@media (prefers-reduced-motion: no-preference) { .pg-th-reply.is-new { animation: pg-pt-evt .45s var(--pg-ease) both; } }

/* what can be a reply */
.pg-th-kinds { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.pg-th-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pg-th-kind > small { padding-left: 4px; font-size: 13px; color: var(--pg-ink-3); }
.pg-th-bub { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 26px; font-size: 18px; line-height: 1.2; background: var(--pg-blue); color: #fff; }
.pg-th-bub svg { width: 24px; height: 24px; flex: none; }
.pg-th-bub.is-in { background: var(--pg-bubble-in); color: var(--pg-phone-ink); }
.pg-th-bub.is-ghost { background: transparent; color: var(--pg-ink-2); box-shadow: inset 0 0 0 1.5px var(--pg-line); border: 1px dashed var(--pg-line); }
.pg-th-bub .pg-code-badge { background: transparent; }
.pg-pt-page .pg-table tbody th { width: 28%; }
.pg-poll-slot { display: flex; flex-direction: column; gap: var(--pg-gap); }
.pg-th-slot { display: flex; flex-direction: column; gap: var(--pg-gap); }
.pg-pt-one.is-flip { grid-template-columns: 360px minmax(0, 1fr); }
@media (max-width: 860px) { .pg-pt-one.is-flip { grid-template-columns: minmax(0, 1fr); } .pg-pt-one.is-flip > :last-child { order: -1; } }
/* ==== mp-usecase2-1 ==== */
/* Review requests and Retention offers. Built on the moments and phone of the customer support page.
   Motion is transform and opacity only, plays once, and is off for reduced motion. */
.pg-uc-hero { display: flex; justify-content: center; margin: clamp(36px, 5vw, 64px) auto 0; }
.pg-uc-hero > div { width: 100%; display: flex; justify-content: center; }
.pg-phc.pg-phc-tall { height: 560px; }
@media (max-width: 900px) { .pg-phc.pg-phc-tall { height: 520px; } }
.pg-phc.pg-phc-taller { height: 560px; }
@media (max-width: 900px) { .pg-phc.pg-phc-taller { height: 560px; } }
.pg-b .pg-lnk { color: #0b84fe; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.pg-uc2-page .pg-stat-grid > div { min-width: 0; }
.pg-uc2-page .pg-tablewrap + .pg-rows { margin-top: 28px; }
.pg-m-vis .pg-tools.pg-rt-consent { width: min(100%, 460px); margin: 0; align-self: center; }

/* review requests: the 24-hour bar */
.pg-rv-day {
  width: min(100%, 520px); padding: 22px 26px 26px; border-radius: 18px; background: var(--pg-card-bg); color: var(--pg-card-ink); text-align: left;
  box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
}
.pg-rv-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pg-rv-day-head b { font-size: 15px; }
.pg-rv-day-head small { font-size: 12.5px; color: var(--pg-card-ink-2); }
.pg-rv-track { position: relative; container-type: inline-size; height: 10px; margin: 58px 0 44px; border-radius: 99px; background: color-mix(in srgb, var(--pg-card-ink) 10%, transparent); }
.pg-rv-win { position: absolute; top: 0; bottom: 0; left: 33.33%; width: 54.17%; border-radius: 99px; background: color-mix(in srgb, var(--pg-blue) 38%, transparent); }
.pg-rv-tick { position: absolute; top: 22px; transform: translateX(-50%); font-size: 12px; color: var(--pg-card-ink-2); white-space: nowrap; }
.pg-rv-tick.is-end { left: 100%; }
.pg-rv-pin { position: absolute; left: 0; top: 50%; border-radius: 50%; transform: translateX(calc(var(--x) * 1cqw)); transition: transform .7s var(--pg-ease); }
.pg-rv-pin.is-job { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: var(--pg-card-bg); box-shadow: 0 0 0 2px var(--pg-card-ink-2); }
.pg-rv-pin.is-sent { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--pg-blue); }
.pg-rv-pin.is-job i { position: absolute; bottom: 100%; left: 50%; margin-bottom: 8px; transform: translateX(-50%); font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--pg-card-ink); }
@media (prefers-reduced-motion: reduce) { .pg-rv-pin { transition: none; } }
.pg-rv-facts { margin: 0; }
.pg-rv-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--pg-card-line); font-size: 14.5px; }
.pg-rv-facts dt { color: var(--pg-card-ink-2); }
.pg-rv-facts dd { margin: 0; font-weight: 600; text-align: right; }

/* review requests: fourteen jobs, two new contacts */
.pg-rv-dots { display: grid; grid-template-columns: repeat(7, 22px); gap: 10px; margin: 32px 0 0; }
.pg-rv-dots i, .pg-rv-legend i { display: block; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--pg-ink) 16%, transparent); }
.pg-rv-dots i.is-new, .pg-rv-legend i.is-new { background: var(--pg-blue); }
.pg-stat-grid .pg-rv-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; font-size: 14.5px; color: var(--pg-ink-2); }
.pg-rv-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pg-rv-legend i { width: 10px; height: 10px; }
/* ==== mp-bgs-1 ==== */
/* Chat backgrounds, photos and voice memos, and name and photo. They reuse the .pg-rx-* moment layout above and add what their own visuals need.
   .pg-bgs-* is shared by the three pages; .pg-bg-*, .pg-pv-* and .pg-np-* belong to one page each. Only transform and opacity move, once, and not under reduced motion. */

/* a segmented control: a few genuinely different things to try */
.pg-bgs-seg { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin-top: 8px; padding: 6px; border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line), var(--pg-lift); }
.pg-bgs-seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--pg-ink-2); font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.1; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; transition: background-color .16s ease, color .16s ease, transform .18s var(--pg-ease); }
.pg-bgs-seg button:active { transform: scale(.96); }
.pg-bgs-seg button:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 1px; }
.pg-bgs-seg button[aria-pressed="true"] { background: var(--pg-blue); color: #fff; }
@media (hover: hover) {
  .pg-bgs-seg button:hover { background: var(--surface-2); color: var(--pg-ink); }
  .pg-bgs-seg button[aria-pressed="true"]:hover { background: var(--pg-blue-deep); color: #fff; }
}
.pg-bgs-seg.is-wide { width: min(100%, 360px); }
.pg-bgs-seg.is-wide button { flex: 1 1 calc(50% - 4px); justify-content: center; }
.pg-bgs-seg button img { width: 28px; height: 28px; border-radius: 50%; flex: none; display: block; }
@media (max-width: 480px) { .pg-bgs-seg button { padding: 0 14px; font-size: 14.5px; } }

/* two columns: copy on the left, the visual on the right */
.pg-bgs-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .pg-bgs-two { grid-template-columns: minmax(0, 1fr); } }

/* three steps in a row, each one bubble and one line */
.pg-bgs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pg-bgs-step { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 26px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line); }
.pg-bgs-step small { font-size: 13.5px; font-weight: 500; color: var(--pg-ink-3); letter-spacing: 0; }
.pg-bgs-step .pg-rx-bub { align-self: flex-start; max-width: 100%; flex-wrap: wrap; font-size: 17px; padding: 14px 20px; }
.pg-bgs-step .pg-rx-bub { min-height: 58px; }
.pg-bgs-step .pg-rx-bub.is-ghost { border: 1.5px dashed var(--pg-ink-3); box-shadow: none; }
.pg-bgs-step p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--pg-ink-2); }
@media (max-width: 860px) { .pg-bgs-steps { grid-template-columns: minmax(0, 1fr); } }

/* a phone with a picture behind its thread: layers that cross-fade */
.pg-bg-stack { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; }
.pg-bg-layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .7s ease; }
.pg-bg-layer.is-on { opacity: 1; }
.pg-bg-page .pg-dev-phone > :not(.pg-bg-stack):not(.pg-island) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .pg-bg-layer { transition: none; } }

/* the background picker: four presets and remove */
.pg-bg-pick { display: flex; gap: 8px; width: fit-content; max-width: 100%; margin-top: 8px; padding: 8px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line), var(--pg-lift); }
.pg-bg-sw { width: 48px; height: 48px; flex: none; border: 0; padding: 0; border-radius: 50%; background-size: cover; background-position: center; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(16, 20, 32, .14); transition: transform .18s var(--pg-ease), box-shadow .15s ease; }
.pg-bg-sw:active { transform: scale(.92); }
.pg-bg-sw:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 2px; }
.pg-bg-sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--pg-blue); }
.pg-bg-sw.is-none { background: var(--surface-2); color: var(--pg-ink-2); }
.pg-bg-sw svg { width: 20px; height: 20px; }
@media (hover: hover) { .pg-bg-sw:hover { transform: translateY(-3px) scale(1.1); } .pg-bg-sw.is-none:hover { color: var(--pg-ink); } }
@media (max-width: 480px) { .pg-bg-sw { width: 44px; height: 44px; } .pg-bg-pick { gap: 6px; } }

/* your own picture, cropped to a phone */
.pg-bg-crop { --bg-h: clamp(170px, 22vw, 280px); display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.pg-bg-fig { margin: 0; }
.pg-bg-fig figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.4; color: var(--pg-ink-3); text-align: left; }
.pg-bg-src { position: relative; height: var(--bg-h); aspect-ratio: 960 / 723; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--pg-line); }
.pg-bg-src img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-bg-frame { position: absolute; top: 0; bottom: 0; left: 50%; width: calc(var(--bg-h) * 1125 / 2436); transform: translateX(-50%); border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 999px rgba(16, 20, 32, .5); }
.pg-bg-arrow { flex: none; width: 44px; height: 16px; color: var(--pg-ink-3); margin-bottom: 30px; }
.pg-bg-out { width: calc(var(--bg-h) * 1125 / 2436); height: var(--bg-h); border-radius: 16px; background-size: auto 100%; background-position: center; box-shadow: 0 0 0 1px var(--pg-line), var(--pg-lift); }
@media (max-width: 560px) { .pg-bg-arrow { display: none; } }

/* what a background is not */
.pg-bg-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pg-bg-fact { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line); }
.pg-bg-fact b { font-size: clamp(32px, 3.4vw, 50px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.pg-bg-fact span { font-size: 15.5px; line-height: 1.4; color: var(--pg-ink-2); }
@media (max-width: 900px) { .pg-bg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* photos and voice memos: the native bubbles inside the phone, and one big voice bubble outside it.
   --u is the unit: 1cqw inside the phone, a fixed length for the big bubble. */
.pg-pv-voice { --u: 1cqw; }
.pg-pv-voice.pg-bubble { display: flex; flex-direction: column; gap: calc(1.2 * var(--u)); width: 76%; max-width: 76%; padding: calc(2.4 * var(--u)) calc(3.4 * var(--u)); }
.pg-pv-row { display: flex; align-items: center; gap: calc(2.6 * var(--u)); }
.pg-pv-play { flex: none; position: relative; width: calc(7 * var(--u)); height: calc(7 * var(--u)); padding: 0; border: 0; border-radius: 50%; background: var(--pg-blue); }
.pg-pv-play::after { content: ""; position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%); border-left: calc(2.4 * var(--u)) solid #fff; border-top: calc(1.5 * var(--u)) solid transparent; border-bottom: calc(1.5 * var(--u)) solid transparent; }
.pg-pv-voice.is-playing .pg-pv-play::after { left: 50%; width: calc(2.2 * var(--u)); height: calc(2.8 * var(--u)); border: 0; border-left: calc(.8 * var(--u)) solid #fff; border-right: calc(.8 * var(--u)) solid #fff; }
.pg-pv-wave { flex: 1; min-width: 0; display: flex; align-items: center; gap: calc(.55 * var(--u)); height: calc(7 * var(--u)); }
.pg-pv-wave i { flex: 1 1 0; height: 30%; background: var(--pg-blue); border-radius: 99px; opacity: .35; }
.pg-pv-wave i:nth-child(3n) { height: 65%; } .pg-pv-wave i:nth-child(4n+1) { height: 90%; } .pg-pv-wave i:nth-child(5n+2) { height: 50%; } .pg-pv-wave i:nth-child(7n) { height: 100%; }
.pg-pv-voice.is-playing .pg-pv-wave i { opacity: .95; transition: opacity .12s linear; transition-delay: calc(var(--i) * 80ms); }
.pg-pv-len { flex: none; font-size: calc(3.4 * var(--u)); color: var(--pg-phone-meta); font-variant-numeric: tabular-nums; }
.pg-pv-tr { margin: 0; font-size: calc(3.7 * var(--u)); line-height: 1.3; color: var(--pg-phone-ink); }
.pg-pv-big { --u: 5px; align-self: flex-start; width: min(100%, 460px); padding: calc(3.6 * var(--u)) calc(4.4 * var(--u)); border-radius: 30px; background: var(--pg-bubble-in); color: var(--pg-phone-ink); display: flex; flex-direction: column; gap: calc(2 * var(--u)); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.pg-pv-big .pg-pv-play { cursor: pointer; transition: transform .18s var(--pg-ease); }
.pg-pv-big .pg-pv-play:active { transform: scale(.92); }
.pg-pv-big .pg-pv-play:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 3px; }
@media (hover: hover) { .pg-pv-big .pg-pv-play:hover { transform: scale(1.08); } }
.pg-pv-big .pg-pv-tr { font-size: 17px; }
.pg-pv-big .pg-pv-len { font-size: 15px; }
@media (max-width: 480px) { .pg-pv-big { --u: 4px; } }
@media (prefers-reduced-motion: reduce) { .pg-pv-voice.is-playing .pg-pv-wave i { transition: none; } }
.pg-pv-photo.pg-bubble { padding: 1.2cqw; max-width: 72%; overflow: hidden; }
.pg-pv-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4.6cqw; }
.pg-pv-photo .pg-pv-cap { margin: 0; padding: 2.2cqw 2.4cqw 1cqw; font-size: var(--pg-bfs); line-height: 1.28; }
.pg-pv-vid { position: relative; }
.pg-pv-vid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw; border-radius: 50%; background: rgba(16, 20, 32, .55); }
.pg-pv-vid::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-30%, -50%); border-left: 3.6cqw solid #fff; border-top: 2.4cqw solid transparent; border-bottom: 2.4cqw solid transparent; }
@media (prefers-reduced-motion: no-preference) { .pg-pv-slot > .is-new { animation: pg-pv-in .45s var(--pg-ease) both; } }
@keyframes pg-pv-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.pg-pv-recv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pg-pv-recv .pg-rx-log { margin-top: 0; }
@media (max-width: 860px) { .pg-pv-recv { grid-template-columns: minmax(0, 1fr); } }

/* name and photo: the contact in the header, the shared line in the thread, the photo's square and circle */
.pg-np-slot { display: contents; }
.pg-bg-page .th-head.is-new { animation: pg-np-in .45s var(--pg-ease) both; }
@keyframes pg-np-in { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pg-bg-page .th-head.is-new { animation: none; } }
.pg-np-note { align-self: center; margin: 0; padding: .6cqw 0 1cqw; font-size: 3.4cqw; line-height: 1.3; color: var(--pg-phone-meta); text-align: center; }
.pg-np-photo { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 40px); }
.pg-np-fig { margin: 0; }
.pg-np-fig figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.4; color: var(--pg-ink-3); text-align: left; }
.pg-np-sq { position: relative; width: clamp(150px, 18vw, 240px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--pg-line); }
.pg-np-sq img { width: 100%; height: 100%; display: block; }
.pg-np-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(16, 20, 32, .5); }
.pg-np-circles { display: flex; align-items: flex-end; gap: 16px; }
.pg-np-circles img { display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--pg-line); }
@media (max-width: 480px) { .pg-np-photo { gap: 16px; } .pg-np-circles { gap: 10px; } }

/* the photos hero keeps the request clear of the thread */
.pg-pv-hero .pg-rx-call { left: -7%; bottom: 2%; width: min(240px, 58%); }
@media (max-width: 900px) { .pg-pv-hero .pg-rx-call { left: 0; } }
/* ==== mp-aiecom-1 ==== */
/* The AI apps (.pg-ai-*) and online stores (.pg-ec-*) pages, and the parts they share (.pg-ae-*). Built on the sample pages' parts: the cropped
   phone (.pg-dev), moments (.pg-m-*), the chip picker (.pg-pick), rows, the code card, plan tiles and the wide FAQ.
   Everything is visible without script. Only transform and opacity move, once, and not under reduced motion. */
body.arc-concept .imsg.pg-ae section.pg-hero { padding-bottom: calc(var(--pg-gap-y) / 2); }
.arc-concept .pg-ae .pg-hero.hero-with-phone h1 { font-weight: 400; letter-spacing: -.04em; }
.pg-ae [hidden] { display: none !important; }

/* phones: one scale per page; the device is cropped by a fade, never squashed */
.pg-ae .pg-dev { --pg-w: 360px; --pg-crop: 540px; }
.pg-ae .pg-dev-phone { --ty-size: 9.6cqw; --ty-fill: var(--pg-bubble-in); }
@media (max-width: 560px) { .pg-ae .pg-dev { --pg-w: 300px; --pg-crop: 460px; } }
.pg-ae-scene { flex: none; display: flex; flex-direction: column; gap: var(--pg-gap); }
.pg-ae-stamp { align-self: center; font-size: 3cqw; color: var(--pg-phone-meta); margin-bottom: -.4cqw; }

/* hero: the phone with the request that made it laid over its lower corner */
.pg-ae-hero { position: relative; display: grid; place-items: center; padding: 16px 0 28px; }
.pg-ae-hero .pg-dev { --pg-w: 340px; --pg-crop: 520px; z-index: 1; }
.pg-ae-call { position: absolute; z-index: 2; left: 2%; bottom: 4%; width: min(262px, 60%); transition: opacity .5s ease, transform .5s var(--pg-ease); }
.pg-ae-call .pg-code { position: static; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), var(--pg-lift); }
.pg-ae-call pre { font-size: 12.5px; padding: 14px 16px 16px; }
@media (max-width: 900px) { .pg-ae-hero { max-width: 460px; justify-self: center; width: 100%; } .pg-ae-call { left: 0; bottom: 6%; width: min(262px, 64%); } }
@media (max-width: 480px) { .pg-ae-call { left: -4px; width: 66%; } .pg-ae-call pre { font-size: 11px; padding: 12px; } }

/* a moment's visual: a phone with a card laid across its lower right */
.pg-ae-duo { width: 100%; display: flex; align-items: center; justify-content: center; }
.pg-ae-duo > .pg-dev { flex: none; width: var(--pg-w); }
.pg-ae-duo > .pg-ae-card { position: relative; z-index: 2; flex: none; width: min(320px, 100%); margin-left: -56px; align-self: flex-end; margin-bottom: 64px; }
@media (max-width: 900px) {
  .pg-ae-duo { flex-direction: column; }
  .pg-ae-duo > .pg-ae-card { margin: -92px 0 0; align-self: center; width: min(100%, 340px); }
}
.pg-ae-card { background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 18px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); text-align: left; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-code.pg-ae-card { background: var(--pg-code-bg); color: var(--pg-code-ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), var(--pg-lift); }
.pg-ae-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--pg-card-line); font-weight: 600; font-size: 15px; }
.pg-ae-card-head .pg-avatar { width: 28px; height: 28px; font-size: 12px; }
.pg-ae-card-body { padding: 16px 16px 18px; display: grid; gap: 6px; }
.pg-ae-card-body small { font-size: 12.5px; color: var(--pg-card-ink-2); }
.pg-ae-state { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pg-ae-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #34c759; flex: none; }
[data-state="waiting"] .pg-ae-state::before { background: #ff9f0a; }
.pg-ae-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; justify-content: center; }
.pg-ae-in { animation: pg-m-pop .5s var(--pg-ease) both; }
@media (prefers-reduced-motion: reduce) { .pg-ae-in { animation: none; } }

/* a segmented control that picks one panel */
.pg-ai-tablist { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--pg-line); }
.pg-ai-tab { font: inherit; font-size: 15px; font-weight: 500; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--pg-ink-2); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s var(--pg-ease), box-shadow .15s ease; }
.pg-ai-tab:hover { color: var(--pg-ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.pg-ai-tab:active { transform: scale(.97); }
.pg-ai-tab[aria-selected="true"] { background: var(--surface); color: var(--pg-ink); box-shadow: 0 0 0 1px var(--pg-line), 0 2px 8px rgba(16, 20, 32, .1); }
.pg-ai-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 2px; }
.pg-ai-panel { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3.4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--pg-line); }
.pg-ai-panel h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.14; letter-spacing: -.02em; font-weight: 500; }
.pg-ai-panel p { margin: 12px 0 0; color: var(--pg-ink-2); line-height: 1.5; max-width: 42ch; }
.pg-ai-panel .pg-code { position: static; }
.pg-ai-panel .pg-chip { margin-top: 18px; }
.pg-ai-ctx { background: var(--pg-card-bg); color: var(--pg-card-ink); border-radius: 18px; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); overflow: hidden; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-ai-ctx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--pg-card-line); font-weight: 600; font-size: 15px; }
.pg-ai-ctx-body { margin: 16px 18px; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--pg-card-line); font-size: 14px; line-height: 1.55; color: var(--pg-card-ink-2); }
.pg-ai-ctx-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
@media (max-width: 860px) { .pg-ai-panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pg-ai-tablist { display: flex; width: 100%; } .pg-ai-tab { flex: 1 1 0; padding: 10px 6px; font-size: 14px; } }

/* lines: pick a number, see the request that sends from it */
.pg-ai-lines { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: center; max-width: 1000px; }
.pg-ai-linelist { display: grid; gap: 10px; }
.pg-ai-line { font: inherit; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 14px 16px; border: 0; border-radius: 20px; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--pg-ink); box-shadow: 0 0 0 1px var(--pg-line); transition: box-shadow .18s ease, transform .18s var(--pg-ease), background-color .15s ease; }
.pg-ai-line .pg-avatar { width: 46px; height: 46px; font-size: 16px; }
.pg-ai-line b { display: block; font-size: 16px; font-weight: 600; }
.pg-ai-line small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--pg-ink-3); }
.pg-ai-line:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pg-blue) 45%, transparent); }
.pg-ai-line:active { transform: scale(.99); }
.pg-ai-line[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--pg-blue); }
.pg-ai-line:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 3px; }
.pg-ai-lines .pg-code { position: static; }
@media (max-width: 860px) { .pg-ai-lines { grid-template-columns: minmax(0, 1fr); } }

/* stores: the product card that asks for a restock text */
.pg-ec-prod { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px; align-items: center; }
.pg-ec-prod-img { width: 84px; height: 96px; border-radius: 12px; background: linear-gradient(180deg, #a9bba5, #8aa388); display: grid; place-items: center; }
.pg-ec-prod-img svg { width: 56px; height: 56px; }
.pg-ec-prod b { display: block; font-size: 15px; }
.pg-ec-prod small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--pg-card-ink-2); }
.pg-ec-sizes { display: flex; gap: 6px; margin-top: 10px; }
.pg-ec-sizes span { min-width: 30px; text-align: center; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--pg-card-line); }
.pg-ec-sizes span.is-out { color: var(--pg-card-ink-2); text-decoration: line-through; opacity: .7; }
.pg-ec-sizes span.is-pick { box-shadow: inset 0 0 0 1.5px var(--pg-card-ink); }
.pg-ec-stock { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 16px 16px; }
.pg-ec-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, #ff9f0a 16%, transparent); color: #a45f00; }
[data-theme="dark"] .pg-ec-chip { color: #ffc16a; }
.pg-ec-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pg-ec-chip.is-back { background: color-mix(in srgb, #34c759 16%, transparent); color: #1d7a37; display: none; }
[data-theme="dark"] .pg-ec-chip.is-back { color: #6fdc8c; }
[data-state="back"] .pg-ec-chip.is-sold { display: none; }
[data-state="back"] .pg-ec-chip.is-back { display: inline-flex; }
.pg-ec-stock .btn { width: 100%; min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pg-ec-chip { color: #ffc16a; } :root:not([data-theme="light"]) .pg-ec-chip.is-back { color: #6fdc8c; } }

/* stores: a photo and its caption in one bubble, and a payment link card */
.pg-dev .pg-bubble.is-photo { padding: 0 0 2.2cqw; max-width: 74%; }
.pg-ec-img { display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: 5.6cqw 5.6cqw 0 0; overflow: hidden; margin-bottom: 2cqw; }
.pg-ec-img svg { display: block; width: 100%; height: 100%; }
.pg-ec-cap { display: block; padding: 0 3.6cqw; }
.pg-dev .pg-bubble.is-link { padding: 1.6cqw; max-width: 80%; }
.pg-ec-pay { font: inherit; display: block; width: 100%; text-align: left; border: 0; cursor: pointer; border-radius: 4.2cqw; padding: 3.2cqw 3.6cqw; color: var(--pg-phone-ink); background: var(--pg-phone-bg);
  box-shadow: 0 0 0 1px var(--pg-phone-line); transition: transform .18s var(--pg-ease), box-shadow .18s ease; }
.pg-ec-pay:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--pg-blue); }
.pg-ec-pay:active { transform: scale(.98); }
.pg-ec-pay:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 2px; }
.pg-ec-pay b { display: block; font-size: 4.4cqw; font-weight: 600; }
.pg-ec-pay span { display: block; margin-top: .6cqw; font-size: 3.5cqw; color: var(--pg-phone-meta); }
.pg-ec-pay i { display: inline-block; margin-top: 2cqw; padding: .6cqw 2.6cqw; border-radius: 99px; font-style: normal; font-size: 3.4cqw; font-weight: 600; background: var(--pg-blue); color: #fff; }
[data-state="paid"] .pg-ec-pay i { background: #34c759; }
.pg-ae-hint { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); z-index: 3; padding: 7px 13px; border-radius: 99px; background: var(--pg-card-bg); color: var(--pg-card-ink);
  font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 1px var(--pg-card-line), var(--pg-lift); pointer-events: none; }

/* stores: three more messages that start with a question, as a bento of different sizes */
.pg-ec-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.pg-ec-tile { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--surface); border: 1px solid var(--pg-line); min-width: 0; }
.pg-ec-tile:nth-child(1) { grid-column: span 7; }
.pg-ec-tile:nth-child(2) { grid-column: span 5; }
.pg-ec-tile:nth-child(3) { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 5vw, 72px); align-items: center; }
.pg-ec-tile h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.14; letter-spacing: -.02em; font-weight: 500; }
.pg-ec-tile p { margin: 0; color: var(--pg-ink-2); line-height: 1.5; max-width: 44ch; }
.pg-ec-tile .pg-chip { align-self: flex-start; }
.pg-ec-tile-copy { display: flex; flex-direction: column; gap: 10px; }
.pg-ec-mini { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; --bt-u: .95px; padding: 6px 0 9px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.pg-ec-tile:nth-child(3) .pg-ec-mini { margin-top: 0; }
.pg-ec-mini .pg-b { max-width: 82%; }
@media (max-width: 860px) {
  .pg-ec-tile:nth-child(n) { grid-column: span 12; }
  .pg-ec-tile:nth-child(3) { display: flex; }
}

/* the detail layer: one list per topic, calm */
.pg-ae .pg-rows .pg-row p + p { margin-top: 8px; }
.pg-ae .pg-rows .pg-row p a { white-space: normal; }

/* ==== hub (integrator) ==== */
/* The /imessage-api/ overview: a card grid for every feature and use-case page, then the detail layer as plain prose, tables and code. */
.pg-hub-page { --pg-hub-gap: clamp(72px, 8vw, 120px); }
.imsg.pg-hub-page section.pg-sec:not(.pg-herox), .imsg.pg-hub-page section.pg-rx-faq { padding: calc(var(--pg-hub-gap) / 2) 0; }
.imsg.pg-hub-page section.pg-herox { padding-bottom: calc(var(--pg-hub-gap) / 2); }
.pg-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pg-hub-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 56px 28px 26px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--pg-line); color: inherit; text-decoration: none; transition: transform .2s var(--pg-ease), box-shadow .2s ease, background-color .15s ease; }
.pg-hub-card h3 { margin: 0; font-size: 1.35rem; font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.pg-hub-card p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--pg-ink-2); }
.pg-hub-card svg { position: absolute; top: 28px; right: 24px; width: 16px; height: 16px; color: var(--pg-ink-3); transition: transform .2s var(--pg-ease), color .15s ease; }
.pg-hub-card:hover { transform: translateY(-3px); background: var(--surface-2); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pg-blue) 40%, transparent), 0 18px 36px -22px rgba(16, 20, 32, .35); }
.pg-hub-card:hover svg { transform: translateX(3px); color: var(--pg-blue); }
.pg-hub-card:active { transform: scale(.985); }
.pg-hub-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 2px; }
@media (max-width: 900px) { .pg-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pg-hub-grid { grid-template-columns: minmax(0, 1fr); } }
.pg-hub-prose > p, .pg-hub-prose > ul, .pg-hub-prose > ol { max-width: 72ch; color: var(--pg-ink-2); line-height: 1.6; }
.pg-hub-prose p { margin: 0 0 14px; }
.pg-hub-prose ul, .pg-hub-prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.pg-hub-prose li { margin: 0 0 8px; }
.pg-hub-prose li strong { color: var(--pg-ink); font-weight: 600; }
.pg-hub-prose a { color: var(--pg-blue); }
.pg-hub-prose .pg-tablewrap { margin: 22px 0; }
.pg-hub-prose caption { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pg-hub-prose .pg-tablewrap { overflow-x: auto; }
.pg-hub-prose .pg-code { position: static; margin: 20px 0; }
.pg-hub-prose .table-note { font-size: .92rem; color: var(--pg-ink-3); }
.pg-hub-prose .src-date { color: var(--pg-ink-3); }
.pg-hub-prose ol.sources, .pg-hub-prose ul.changelog { font-size: .95rem; }
.pg-hub-prose time { font-variant-numeric: tabular-nums; color: var(--pg-ink); }
.pg-hub-prose .pg-hub-more { margin: 4px 0 0; }
.pg-hub-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.pg-hub-more a svg { width: 14px; height: 14px; transition: transform .2s var(--pg-ease); }
.pg-hub-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-hub-more a:hover svg { transform: translateX(3px); }
.pg-hub-more a:active { opacity: .7; }
.pg-hub-more a:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 55%, transparent); outline-offset: 3px; border-radius: 4px; }
