/* =====================================================================
   pg-features2.css: extras for the Features hub + AI inbox assistant, AI reply drafts, Ask Scrubbr
   (features/index.html, ai-inbox-assistant.html, ai-email-drafts.html, ask-scrubbr.html) on tpl.css.
   Load order: styles.css -> tpl.css -> section-footer.css -> pg-features2.css. Everything is namespaced .pfa-*.
   The UI snippets are static, aria-hidden sample data: the same people and messages as the home product panel.

   PAGE RECIPE (feature page): hero (pill, h1, sub, two start buttons, fine print) + framed .tp-mock
     -> "Works with" strip (.tp-logos, white sheet)
     -> "How it works": .pfa-splits, 4 alternating split rows (text left/right, UI snippet in .pfa-viz)  [mint]
     -> "What it covers": .tp-cards with .pfa-tile icon chips (3 or 2 columns)                          [white sheet]
     -> "Who it is for": .pfa-who three plain columns                                                    [mint]
     -> privacy: .tp-fold.tp-callout (two paragraphs)                                                    [white sheet]
     -> related features: .tp-links                                                                      [white]
     -> FAQ (.tp-faq, tp-soft) -> closing CTA (.tp-cta) -> footer.
   ===================================================================== */

/* ---------- inline code ---------- */
.tp-page code {
  padding: 1px 6px; border-radius: 6px; background: rgba(0,108,224,.1); color: var(--tp-ink);
  font: 500 .9em 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- hero mock: caption + variants ---------- */
.pfa-cap { margin: 16px auto 6px; max-width: 760px; padding: 0 12px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--tp-muted); }
.pfa-cap code { background: rgba(255,255,255,.7); }
.pfa-noise {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; opacity: .85;
  font-size: 13.5px; color: var(--tp-muted); white-space: nowrap;
}
.pfa-noise svg { width: 18px; height: 18px; flex: none; }
.pfa-noise span { overflow: hidden; text-overflow: ellipsis; }
.pfa-div { display: flex; align-items: center; gap: 10px; margin: 8px 2px 2px; font-size: 12.5px; color: var(--tp-faint); }
.pfa-div::before, .pfa-div::after { content: ""; flex: 1; height: 1px; background: var(--tp-line); }
.pfa-win-end { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.pfa-win-end svg { width: 20px; height: 20px; }

/* a window whose body is one centred column (chat) or two columns (composers) */
.pfa-body { padding: 28px 32px 32px; }
.pfa-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.pfa-steplabel { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tp-muted); }
.pfa-steplabel b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--tp-ink); color: #fff; font-size: 12px; letter-spacing: 0; }
.pfa-chatbody { max-width: 760px; margin: 0 auto; padding: 36px 32px 32px; }

/* ---------- composer (reply box) ---------- */
.pfa-comp { border: 1px solid var(--tp-line); border-radius: 18px; background: #fff; overflow: hidden; }
.pfa-comp-h { padding: 14px 18px 12px; border-bottom: 1px solid var(--tp-line); }
.pfa-kick { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-faint); }
.pfa-comp-t { margin: 4px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.pfa-comp-s { margin: 3px 0 0; font-size: 13px; color: var(--tp-muted); }
.pfa-msg { padding: 12px 18px 14px; }
.pfa-msg-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pfa-msg-h b { font-weight: 600; }
.pfa-msg-h small { font: 400 11.5px/1 'IBM Plex Mono', ui-monospace, monospace; color: var(--tp-faint); }
.pfa-msg p { margin: 8px 0 0 30px; font-size: 13.5px; line-height: 1.45; color: var(--tp-ink); }
.pfa-av-s { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #DDEFE5; font-size: 10px; font-weight: 600; flex: none; }
.pfa-ed { border-top: 1px solid var(--tp-line); padding: 0 18px 10px; }
.pfa-to { display: flex; align-items: center; gap: 8px; padding: 10px 0 0; font-size: 12px; color: var(--tp-muted); }
.pfa-mode { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--tp-line); border-radius: 99px; }
.pfa-mode svg { width: 13px; height: 13px; }
.pfa-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: 99px; background: #DCEBFB; color: var(--blue); font-size: 12px; white-space: nowrap; }
.pfa-pill b { font-weight: 600; }
.pfa-text { min-height: 120px; padding-top: 10px; font-size: 13.5px; line-height: 1.45; }
.pfa-text p { margin: 0; }
.pfa-text p + p { margin-top: 6px; }
.pfa-cmd { display: inline; font: 500 13px/1.5 'IBM Plex Mono', ui-monospace, monospace; color: var(--tp-ink); }
.pfa-caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--tp-ink); }
.pfa-tray { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding-top: 8px; border-top: 1px solid var(--tp-line); }
.pfa-stat { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 11.5px; color: var(--tp-faint); }
.pfa-stat em { font-style: normal; flex: none; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.pfa-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.pfa-tools img { width: 22px; height: 22px; }
.pfa-send { padding: 5px 14px; border-radius: 99px; background: #EDF3EF; color: var(--tp-faint); font-size: 12.5px; font-weight: 600; }
.pfa-send.is-on { background: var(--tp-ink); color: #fff; }
.pfa-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px;
  border-radius: 99px; border: 1px solid var(--tp-line); background: #fff;
  font-size: 12px; line-height: 1.5; color: var(--tp-muted); white-space: nowrap;
}
.pfa-chip svg { width: 13px; height: 13px; flex: none; }
.pfa-chip span { overflow: hidden; text-overflow: ellipsis; }
/* 320px: the chip in the reply tray did not shrink next to "grounded in" and its right end was clipped; min-width 0 lets the label ellipsize */
.pfa-chip { min-width: 0; }
.pfa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* knowledge-base document */
.pfa-doc { padding: 16px 18px; background: #fff; border: 1px solid var(--tp-line); border-radius: 16px; }
.pfa-doc-t { margin: 5px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.pfa-doc-ty { margin: 3px 0 0; font-size: 11.5px; color: var(--tp-faint); }
.pfa-doc-b { margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--tp-line); border-radius: 14px; background: var(--tp-tint); font: 400 12px/1.7 'IBM Plex Mono', ui-monospace, monospace; color: var(--tp-muted); }
.pfa-doc-b p { margin: 0; }
.pfa-doc-b p + p { margin-top: 8px; }
.pfa-doc-b mark { padding: 0 2px; border-radius: 2px; background: rgba(0,108,224,.14); box-shadow: 0 0 0 1px rgba(0,108,224,.3); color: var(--tp-ink); }

/* ---------- chat ---------- */
.pfa-ubw { display: flex; justify-content: flex-end; }
.pfa-ub { max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: #DCEBFB; font-size: 15px; line-height: 1.45; }
.pfa-ans { margin-top: 18px; max-width: 600px; font-size: 15px; line-height: 1.55; }
.pfa-ans .pfa-hl { padding: 0 3px; margin: 0 -3px; border-radius: 4px; background: rgba(0,108,224,.14); white-space: nowrap; }
.pfa-foot { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.pfa-foot img { width: 38px; height: 38px; flex: none; }
.pfa-input { flex: 1; min-width: 0; min-height: 40px; padding: 9px 18px; border: 1px solid var(--tp-line); border-radius: 20px; background: var(--tp-soft); font-size: 14px; color: var(--tp-faint); }
.pfa-sendc { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tp-ink); color: #fff; opacity: .3; }
.pfa-sendc svg { width: 15px; height: 15px; }
.pfa-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.pfa-prompts span { padding: 8px 14px; border: 1px solid var(--tp-line); border-radius: 99px; background: #fff; font-size: 14px; color: var(--tp-ink); }

/* ---------- 3. How it works: split rows ---------- */
.pfa-splits { display: flex; flex-direction: column; gap: 104px; }
.pfa-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.pfa-split:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.pfa-split:nth-child(even) .pfa-copy { order: 2; }
.pfa-n { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-faint); }
.pfa-n::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--cyan); }
.pfa-split:nth-child(2) .pfa-n::before { background: var(--blue); }
.pfa-split:nth-child(3) .pfa-n::before { background: var(--mint, #7BCD89); }
.pfa-copy .tp-h3 { margin-bottom: 14px; }
.pfa-copy p:not(.pfa-n) { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.5; color: var(--tp-muted); }
.pfa-viz {
  position: relative; padding: 14px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(11,28,33,.08); border-radius: 32px;
  box-shadow: 0 30px 60px -40px rgba(11,28,33,.25);
}
.pfa-viz .tp-win { border-radius: 22px; }
.pfa-viz .tp-win-bar { height: 48px; padding: 0 20px; font-size: 14.5px; }
.pfa-viz .tp-mini-body { padding: 20px 20px 24px; min-height: 250px; justify-content: center; }
.pfa-viz .tp-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
.pfa-viz .tp-av { width: 32px; height: 32px; }
.pfa-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pfa-app { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 12px; border: 1px solid var(--tp-line); border-radius: 16px; background: #fff; font-size: 12px; line-height: 1.2; text-align: center; color: var(--tp-muted); }
.pfa-app svg { width: 34px; height: 34px; }
.pfa-viz .pfa-comp { border-radius: 14px; }

/* ---------- 4. What it covers: card tiles ---------- */
.pfa-tile { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pfa-ic { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 24px; background: #fff; box-shadow: 0 10px 24px -14px rgba(11,28,33,.35); color: var(--blue); }
.tp-tile .pfa-ic svg { width: 48px; height: 48px; }
.pfa-tile.is-three .pfa-ic { width: 76px; height: 76px; border-radius: 20px; }
.pfa-tile.is-three .pfa-ic svg { width: 40px; height: 40px; }
.tp-cards-2 .tp-tile { aspect-ratio: 16 / 9; }

/* ---------- 5. Who it is for: three plain columns ---------- */
.pfa-who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.pfa-who li { padding-top: 24px; border-top: 2px solid var(--tp-ink); }
.pfa-who h3 { margin: 0 0 12px; font-weight: 600; font-size: 24px; line-height: 1.12; letter-spacing: -0.02em; color: var(--tp-ink); text-wrap: balance; }
.pfa-who p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--tp-muted); }

/* ---------- note (availability) ---------- */
.pfa-note { max-width: 760px; margin: 48px auto 0; padding: 22px 28px; border-radius: 18px; background: var(--tp-tint); border: 1px solid var(--tp-line); }
.pfa-note-label { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.pfa-note p:not(.pfa-note-label) { margin: 0; font-size: 16px; line-height: 1.5; color: var(--tp-muted); }

/* ---------- privacy callout ---------- */
.tp-callout .pfa-shield { width: 44px; height: 44px; margin: 0 auto 18px; display: block; }
.tp-callout p.tp-callout-text + p.tp-callout-text { margin-top: 12px; }

/* ---------- hub ---------- */
.pfa-feat { display: block; color: inherit; text-decoration: none; }
.pfa-feat .tp-tile { transition: transform .2s ease, box-shadow .2s ease; }
.pfa-feat:hover .tp-tile { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(11,28,33,.4); }
.pfa-more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15.5px; color: var(--blue); }
.pfa-more::after { content: " \2192"; }
.pfa-snip { width: 78%; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 16px 34px -20px rgba(11,28,33,.4); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.pfa-snip .tp-row { grid-template-columns: 26px minmax(0, 1fr); padding: 8px 10px; gap: 9px; border-radius: 11px; }
.pfa-snip .tp-av { width: 26px; height: 26px; font-size: 10.5px; }
.pfa-snip .tp-row-t b { font-size: 12.5px; margin-right: 6px; }
.pfa-snip .tp-row-t em { font-size: 12.5px; }
.pfa-snip .tp-row-t p, .pfa-snip .tp-row-m { display: none; }
.pfa-snip .pfa-cmd { font-size: 12px; padding: 8px 10px; border: 1px solid var(--blue); border-radius: 10px; display: block; }
.pfa-snip .tp-mini-draft { font-size: 12px; padding: 10px 12px; }
.pfa-snip .pfa-chip { font-size: 11px; padding: 3px 9px; }
.pfa-snip .pfa-ub { font-size: 12px; padding: 7px 11px; max-width: 92%; }
.pfa-snip .pfa-ans { margin: 4px 0 0; font-size: 12px; line-height: 1.45; }
.pfa-snip .pfa-chips { margin-top: 2px; }
.pfa-todo { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--tp-line); border-radius: 11px; font-size: 12.5px; line-height: 1.25; color: var(--tp-ink); }
.pfa-todo i { flex: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--tp-ink); }
.pfa-todo.is-done i { border-color: #7BCD89; background: #7BCD89; }
.pfa-todo small { margin-left: auto; flex: none; font-size: 11px; color: var(--tp-faint); }
.pfa-note-card { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.4; color: var(--tp-muted); }
.pfa-note-card b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--tp-ink); }
.pfa-note-card img { width: 16px; height: 16px; }
.pfa-voice { display: flex; align-items: center; gap: 12px; }
.pfa-mic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.pfa-mic svg { width: 20px; height: 20px; }
.pfa-wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.pfa-wave i { width: 3px; border-radius: 2px; background: var(--cyan); }
.tp-fold-cards .pfa-when { margin: 0 auto 12px; text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.tp-fold-cards p.pfa-linkp { margin: 16px auto 0; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .pfa-split, .pfa-split:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 640px; margin: 0 auto; }
  .pfa-split:nth-child(even) .pfa-copy { order: 0; }
  .pfa-splits { gap: 72px; }
  .pfa-who { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 560px; margin: 0 auto; }
  .pfa-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .pfa-cap { font-size: 13px; margin-top: 12px; }
  .pfa-body, .pfa-chatbody { padding: 18px 14px 18px; }
  .pfa-chatbody { padding-top: 22px; }
  .pfa-ub { max-width: 94%; font-size: 14px; }
  .pfa-ans { font-size: 14px; }
  .pfa-viz { padding: 8px; border-radius: 22px; }
  .pfa-viz .tp-win { border-radius: 16px; }
  .pfa-viz .tp-mini-body { padding: 14px 12px 16px; min-height: 0; }
  .pfa-splits { gap: 56px; }
  .pfa-copy p:not(.pfa-n) { font-size: 16.5px; }
  .pfa-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .pfa-app { padding: 12px 2px 8px; font-size: 10.5px; }
  .pfa-app svg { width: 28px; height: 28px; }
  .pfa-tray { flex-wrap: wrap; justify-content: flex-end; }
  .pfa-stat { flex: 1 1 100%; }
  .pfa-pill b + span { display: none; }
  .pfa-note { padding: 18px 20px; margin-top: 36px; }
  .pfa-text { min-height: 64px; }
  .pfa-snip { width: 84%; }
  .pfa-ic { width: 60px; height: 60px; border-radius: 16px; }
  .tp-tile .pfa-ic svg { width: 32px; height: 32px; }
  .tp-cards-2 .tp-tile { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .pfa-feat .tp-tile { transition: none; }
}

/* floating labels hang off the bottom corners of the hero mock (they would cover sample text at the sides) */
.pfa-mock-low .tp-float-b { top: auto; left: 24px; bottom: -40px; }
.pfa-mock-low .tp-float-c { top: auto; right: 24px; bottom: -40px; }
