/* Phoenix AI Solutions · proof.css
   The proof pages: /customers/, /variants/customers-press/, /stories/, /stories/lead-tagging/.
   Loads after site.css; everything is prefixed .proof-. Spacing maps: docs/spacing-maps/customers.md,
   variant-customers-press.md, stories.md, story-lead-tagging.md.

    1  Shared: page bands, intro, notes, window bar, sample figures
    2  Customers, Variant A: hero with the product, sample figures, client tiles
    3  Customers, Variant B: dated press list with a screen thumbnail on each row
    4  Shared: quote and closing call
    5  Stories: the featured story card
    6  One story: facts, flow diagram, product frame, notes
    7  Phone and touch (phone pass, 13 Oct)

   Every screen on these pages is a crop made by tools/crop-proof-screens.py (site/assets/img/proof/), shown at 0.79 to 1.0 of its size so the
   app's own text stays 11 px or more; the frame clips the right and the bottom (the crop rule: top-left, bleeding right and bottom).
   Sections sit on the rhythm site.css sets (colour edge 64 + 64, same background one gap of 64, phones 48 + 48 and 48): this file adds none. */

/* ============================================================ 1. Shared */
.proof-band { padding-block: var(--s-64); }
.proof-slab { padding-block: var(--s-64); }
@media (max-width: 767px) { .proof-band, .proof-slab { padding-block: var(--s-48); } }

.proof-intro { max-width: none; }
.proof-intro > .eyebrow { margin-bottom: var(--s-12); }
.proof-intro > .lead { max-width: 680px; margin-top: var(--s-16); text-wrap: balance; }
.proof-intro > h1 + .lead { margin-top: var(--s-16); }
.proof-head { max-width: 680px; margin-bottom: var(--s-32); }          /* a section title sits 32 above its content, 64 below the section before */
.proof-head > * + * { margin-top: var(--s-12); }                       /* the notes that belong to the section (placeholders) sit 12 under its title */
.proof-notes > * + *, .proof-press-notes > * + * { margin-top: var(--s-12); }

.proof-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The window bar of every screen on these pages: three dots at the left, the "Sample screen" chip at the right (the data in the app is made up).
   36 high on every width: site.css shrinks the bar to a hairline under 480, which leaves no room for the chip. */
.frame-bar.proof-bar { height: 36px; padding: 0 var(--s-16); }
.frame-bar.proof-bar i { display: block; flex: none; }
.frame-bar.proof-bar > .sample { margin-left: auto; align-self: center; }
.proof-hero-frame, .proof-bento .frame-window, .proof-quote-media .frame-window, .proof-thumb, 
/* Sample figures: Mono numerals one step below their line (the h1's 56 gives 44, the phone's 36 gives 30), a hairline above each, no boxes. */
.proof-stats-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-16); margin-bottom: var(--s-24); }
.proof-stats-head > p { max-width: 680px; text-wrap: balance; }
.proof-stats { display: grid; gap: 0 var(--s-32); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .proof-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proof-stat { padding: var(--s-24) 0; border-top: 1px solid var(--line); }
.proof-stat-n { display: block; font: 500 44px/48px var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.proof-stat-l { display: block; margin-top: var(--s-8); max-width: 320px; color: var(--ink-2); font: 400 15px/20px var(--font-text); }
@media (max-width: 767px) {                                                   /* phone: numeral left, words right, one row each */
  .proof-stat { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: var(--s-16); padding: var(--s-16) 0; }
  .proof-stat-n { font-size: 30px; line-height: 36px; }
  .proof-stat-l { margin-top: 0; }
}

/* ============================================================ 2. Customers, Variant A */
/* Hero: the words on the left, the product on the right in a grey tile, the window rising out of its bottom and right edges (as on Home).
   At 1024 and up: words 5fr, tile 7fr. Below: stacked, the tile capped at 768 so the crop is never enlarged past its pixels. */
.proof-hero { display: grid; gap: var(--s-32); align-items: center; }
.proof-hero-media { max-width: 768px; padding: var(--s-32) 0 0 var(--s-32); background: var(--grey); border-radius: 24px; overflow: hidden; }
.proof-hero-frame { margin: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.proof-hero-frame img { display: block; width: 100%; height: auto; }
.proof-logo-board { background: #111114; }
.proof-logo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--s-12); padding: var(--s-24); background: #111114; }
.proof-logo-grid span { display: grid; place-items: center; min-height: 150px; padding: var(--s-24); background: #fff; border-radius: var(--r-14); }
.proof-logo-grid img { width: min(100%, 130px); height: 72px; object-fit: contain; }
@media (min-width: 1024px) {
  .proof-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-48); }
  .proof-hero-media { max-width: none; padding: var(--s-48) 0 0 var(--s-48); }
  .proof-hero-frame img { width: 704px; max-width: none; }                   /* the crop at 0.8 of its screen: the frame clips what does not fit */
  .proof-hero-frame .proof-logo-grid img { width: min(100%, 130px); max-width: 130px; }
}

/* The three clients: the Superhuman bento of site.css (.bento, .tile, .tile-text, .tile-media), 7 + 5 over 7 + 5, the screen bleeding off the tile. */
@media (min-width: 900px) { .proof-bento .span-5 { grid-column: span 5; } .proof-bento .span-7 { grid-column: span 7; } }   /* site.css has 4, 6, 8 and 12 */
.proof-client { position: relative; }
.proof-client .tile-text { padding: var(--s-32) var(--s-32) var(--s-24); }
.proof-client .tile-text > .h3 { margin-top: var(--s-8); }
.proof-client .tile-text > .proof-line { margin-top: var(--s-8); max-width: 520px; color: var(--ink-2); }
.proof-client .tile-text > .proof-result { margin-top: var(--s-12); max-width: 520px; }
.proof-client .tile-text > .link-arrow { align-self: flex-start; margin-top: var(--s-16); }
.proof-client .tile-media img { display: block; width: 100%; height: auto; }
.proof-client .tile-media .proof-crm-screen { width: 125%; max-width: none; transform: translateX(-15%); filter: hue-rotate(18deg) saturate(.86); }
@media (min-width: 900px) { .proof-client .tile-media img { width: 650px; max-width: none; } }   /* 0.79 of the screen; the frame clips the right */
@media (min-width: 900px) { .proof-client .tile-media .proof-crm-screen { width: 820px; transform: translateX(-130px); } }
.proof-client .tile { min-height: 0; }
.proof-stamp { display: none; }
@media (min-width: 768px) {
  .proof-stamp { display: block; position: absolute; top: var(--s-32); right: var(--s-32); z-index: 1; width: auto; height: 24px; opacity: .7; pointer-events: none; }   /* the crest pill, a small signature: never clickable, never a client's logo */
}

.proof-open { color: var(--ink); }
.proof-open .tile-text { flex: 1; justify-content: center; }
.proof-open .link-arrow { align-self: flex-start; margin-top: var(--s-16); }
.proof-open:active { background-image: linear-gradient(var(--hover), var(--hover)); }
@media (hover: hover) { .proof-open:hover { background-image: linear-gradient(var(--hover), var(--hover)); } }
.proof-open:hover .link-arrow::after, .proof-open:active .link-arrow::after { transform: translateX(var(--arrow-go)); }

.proof-cards { display: grid; gap: var(--s-24); }
@media (min-width: 768px) { .proof-cards.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.proof-story { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.proof-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tile); }
@media (min-width: 768px) { .proof-media svg > text { font-size: 28px; } }             /* the Jev label: the h3 size on wide screens, 24 (the phone h3) on a phone */
.proof-photo { width: 100%; height: 100%; object-fit: cover; }
.proof-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-24); }
.proof-body > .h3 { margin-top: 0; }
.proof-body > .proof-line { margin-top: var(--s-8); color: var(--ink-2); }
.proof-body > .proof-result { margin-top: var(--s-12); }
.proof-body > .link-arrow { margin-top: auto; padding-top: var(--s-16); }
.proof-line, .proof-result { font: 400 15px/20px var(--font-text); }
.proof-result b { font-weight: 500; }

/* ============================================================ 3. Customers, Variant B (the press list) */
/* Legora's axis: a third on the left (label, sample figures, notes, "Your business?"), the dated rows on the right two thirds, each row with
   a screen thumbnail where Legora puts its photograph. Under 1100 it is one column: the rail's parts and the list are ordered by .order. */
.proof-press { display: flex; flex-direction: column; gap: var(--s-32); }
.proof-press-side { display: contents; }
.proof-press-head { order: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-12); }
.proof-press-side > .proof-stats { order: 2; }
.proof-press-notes { order: 3; max-width: 680px; }
.proof-list { order: 4; }
.proof-press-open { order: 5; }
@media (min-width: 1100px) {
  .proof-press { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-32) var(--s-48); align-items: start; }
  .proof-press-side { display: flex; flex-direction: column; gap: var(--s-32); align-self: stretch; }
  .proof-press-side > .proof-stats { grid-template-columns: minmax(0, 1fr); }
  .proof-press-open { margin-top: auto; }
}
.proof-press-open { padding-top: var(--s-24); border-top: 1px solid var(--line); }
.proof-press-open > .link-arrow { margin-top: var(--s-8); }

.proof-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.proof-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 280px; align-items: start; gap: var(--s-24);
  padding: var(--s-32) 0; border-bottom: 1px solid var(--line);
}
.proof-date { padding-top: 3px; color: var(--ink-2); font-size: 15px; }              /* date and name share a baseline */
.proof-row-main > .proof-line { margin-top: var(--s-8); color: var(--ink-2); }
.proof-row-main > .proof-result { margin-top: var(--s-12); }
.proof-row-main > .link-arrow { margin-top: var(--s-16); }
.proof-row:last-child { padding-bottom: 0; border-bottom: 0; }                  /* the list ends on its last row, so the gap to the next slab is the slab gap only */
.proof-thumb { display: flex; width: 280px; margin: 0; aspect-ratio: 16 / 10; }
.proof-thumb picture { display: contents; }
.proof-thumb img { flex: 1; width: 100%; min-height: 0; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 767px) {                                                     /* phone: the date, the screen, then the words, all the full width */
  .proof-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "thumb" "main"; gap: var(--s-12); padding: var(--s-24) 0; }
  .proof-date { grid-area: date; padding-top: 0; }
  .proof-thumb { grid-area: thumb; width: 100%; aspect-ratio: 2 / 1; }
  .proof-row-main { grid-area: main; margin-top: var(--s-4); }                  /* thumb to name 16 */
}

/* ============================================================ 4. Quote and closing call */
.proof-quote-grid { display: grid; gap: var(--s-32); align-items: center; }
@media (min-width: 900px) { .proof-quote-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s-48); } }
.proof-quote-media { width: 100%; max-width: 420px; }
.proof-quote-media .frame-window { margin: 0; }
.proof-quote-media img { display: block; width: 100%; height: auto; }
.proof-quote { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-24); max-width: 680px; }
.proof-quote-text { font: 600 28px/32px var(--font-display); letter-spacing: 0; }
.proof-quote figcaption { margin-top: calc(-1 * var(--s-8)); }                              /* quote to name 16 (24 gap minus 8) */
@media (max-width: 767px) { .proof-quote-text { font-size: 24px; line-height: 28px; } }

.proof-closing .lead { max-width: 680px; margin: var(--s-16) auto var(--s-32); text-wrap: balance; }

/* ============================================================ 5. Stories: the featured story card */
.proof-card[hidden] { display: none; }
.proof-card .proof-body { padding: var(--s-24); }
.proof-pills { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-bottom: var(--s-12); }
.proof-steps { display: grid; margin: var(--s-16) 0 0; }
.proof-steps > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-16); padding: var(--s-12) 0; border-top: 1px solid var(--line); }
.proof-steps dt { color: var(--ink-2); font: 500 13px/20px var(--font-text); }
.proof-steps dd { margin: 0; font: 400 15px/20px var(--font-text); }
.proof-card > .proof-body > .link-arrow { margin-top: var(--s-16); padding-top: 0; }
.proof-notes { margin-top: var(--s-24); max-width: 680px; }

/* The card opens on a picture: the Jev drawing, cropped to fill. The box is never wider than 2:1, so the crop never reaches the
   drawing (its parts sit inside x 80 to 520, y 64 to 336 of 600 by 400); 280 high at least, so its words stay 13 px or more on a phone. */
.proof-card .proof-media { aspect-ratio: 2 / 1; height: auto; min-height: 280px; }
.proof-cards.is-1 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {                                                      /* one story: the picture and the words side by side, the picture filling its half (below 1100 the half was too narrow and cut the tags) */
  .proof-card.is-feature { flex-direction: row; }
  .proof-card.is-feature .proof-media { flex: 0 0 50%; aspect-ratio: auto; height: auto; min-height: 420px; }
  .proof-card.is-feature .proof-body { flex: 1 1 0; justify-content: center; padding: var(--s-48); }
}

/* ============================================================ 6. One story */
.proof-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--s-48) 0 0; padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 900px) { .proof-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof-fact { display: flex; flex-direction: column; gap: var(--s-8); padding: var(--s-24); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-fact:nth-child(2n) { border-right: 0; }
.proof-fact:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 900px) {
  .proof-fact, .proof-fact:nth-child(2n) { border-right: 1px solid var(--line); border-bottom: 0; }
  .proof-fact:last-child { border-right: 0; }
}
.proof-fact dt { color: var(--ink-2); font: 500 13px/16px var(--font-text); }
.proof-fact dd { margin: 0; font: 500 17px/24px var(--font-text); }

.proof-prose h2 { font: 600 28px/32px var(--font-display); text-box: trim-both cap alphabetic; }
.proof-prose h2 + * { margin-top: var(--s-16); }
.proof-prose > * + * { margin-top: var(--s-16); }
.proof-prose { max-width: 680px; }
.proof-prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 767px) { .proof-prose h2 { font-size: 24px; line-height: 28px; } }

.proof-flow { margin: var(--s-32) 0 0; }
.proof-flow figcaption { margin-top: var(--s-16); max-width: 680px; color: var(--ink-2); }
.proof-flow svg { display: block; width: 100%; height: auto; }
.proof-flow .flow-h { max-width: 1080px; }                                    /* the drawing is 1080 wide: shown 1:1 its words are 15 and 13 */
.proof-flow .flow-v { display: none; max-width: 360px; margin-inline: auto; }
@media (max-width: 1199px) {                                                     /* the wide drawing only at full size: scaled below 1200 its words fell under 13 px (14 Oct QA) */
  .proof-flow .flow-h { display: none; }
  .proof-flow .flow-v { display: block; }
  .proof-flow .flow-v .flow-s { font-size: 15px; }                              /* 15 (the small size) in the 340 drawing stays 13 or more down to a 360 screen */
  .proof-flow .flow-v .flow-n { font-size: 15px; }
}
.flow-node { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1; }
.flow-node.is-jev { fill: var(--tile); stroke: var(--tile); }
.flow-t { font: 600 17px var(--font-display); fill: var(--ink); }
.flow-s { font: 400 15px var(--font-text); fill: var(--ink-2); }
.flow-t.on-dark { fill: var(--on-dark); }
.flow-s.on-dark, .flow-n.on-dark { fill: var(--on-dark-2); }
.flow-n { font: 500 13px var(--mono); fill: var(--ink-2); }
.flow-num { font-family: var(--mono); font-weight: 500; }
.flow-arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.flow-dash { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 4; stroke-linecap: round; }
.flow-note { fill: none; stroke: var(--line-strong); stroke-width: 1; }

/* The product frame rises out of the bottom edge of the grey slab: site.css pads a slab that has a neighbour 64 at the bottom with the same
   weight as this selector, so the override names the slab twice. */
main > .proof-product-slab.is-grey { padding-bottom: 0; }
.proof-product-text { max-width: 680px; }
.proof-product-text > .eyebrow { margin-bottom: var(--s-12); }
.proof-lead { margin-top: var(--s-16); font: 400 17px/24px var(--font-text); }
.proof-product-text > .cluster { align-items: center; margin-top: var(--s-24); }
.proof-product-text > .cluster > .sample { align-self: center; }
.proof-shot { margin-top: var(--s-48); border-bottom: 0; border-radius: 14px 14px 0 0; }
.proof-crop { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--tile); }
.proof-crop picture { display: contents; }
.proof-crop img { position: absolute; left: 0; top: 0; width: 1440px; max-width: none; height: auto; }       /* 1:1 (the 2x file at 1440): the app's text keeps its size; the frame shows the top-left and bleeds right and bottom */

.proof-note { padding: var(--s-24); border: 1px dashed var(--line-strong); border-radius: 20px; }
.proof-after { margin-top: var(--s-32); }
.proof-table { max-width: 680px; margin-top: var(--s-32); }
.proof-table .table th:last-child { text-align: right; }
.proof-small { margin-top: var(--s-16); color: var(--ink-2); font: 400 15px/20px var(--font-text); max-width: 680px; }
.proof-next { display: grid; gap: var(--s-24); }
@media (min-width: 768px) { .proof-next { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof-next .card { display: flex; flex-direction: column; gap: var(--s-12); }
.proof-next .card .link-arrow { margin-top: auto; padding-top: var(--s-4); }
.proof-next .card .h4 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-12); }
.proof-back { margin-top: var(--s-24); }
@media (max-width: 767px) {                                                  /* phone: the "Where they come from" card of the phone screen, whole, at 0.9 of its size */
  .proof-crop { aspect-ratio: auto; }
  .proof-crop img { position: static; width: 100%; height: auto; }
}

/* ============================================================ 7. Phone and touch (phone pass, 13 Oct) */
@media (max-width: 767px), (pointer: coarse) {
  .proof-closing .cluster { row-gap: var(--s-8); }                                  /* button and link are two targets: 8 between them */
}
@media (max-width: 767px) {
  /* A text link is a 44 target (site.css gives a.link-arrow its 44 on a phone and on a touch tablet; a span inside a card link keeps its line).
     The box takes 12 above and 12 below the words, so on a phone each link pulls back 12 below and 12 above its old gap (margin -12 below,
     4 above for the old 16): the page looks as it did, the finger gets 44. */
  .proof-body > .link-arrow, .proof-card > .proof-body > .link-arrow, .proof-row-main > .link-arrow, .proof-client .tile-text > .link-arrow { padding-top: 0; margin-block: var(--s-4) -12px; }
  .proof-press-open > .link-arrow { margin-block: 0 -12px; }
  .proof-back { margin-top: var(--s-12); }

  /* Customers: the hero tile and the client tiles hold the phone screen at the full width of the frame (0.84 of its size) */
  .proof-hero-media { padding: var(--s-24) var(--s-16) 0; }
  .proof-logo-grid { padding: var(--s-16); }
  .proof-logo-grid span { min-height: 104px; padding: var(--s-16); }
  .proof-hero-frame, .proof-client .tile-media > .frame-window { border-right: 1px solid var(--line); border-radius: 14px 14px 0 0; }
  .proof-client .tile-text { padding: var(--s-24) var(--s-24) var(--s-16); }
  .proof-client .tile-media { padding: 0 var(--s-16); }
  .proof-open .tile-text { padding: var(--s-24); }
  .proof-quote-media { max-width: none; }

  /* Stories: the row label sits over its text, so the text gets the whole card width */
  .proof-steps > div { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .proof-media svg g text { font-size: 19px; }                                   /* the picture's tag words: the 600-wide drawing is shown at .70 on a phone (its box is at least 280 high), so 19 (the phone lead size) draws as 13.3 */

  /* One story: facts in one column, the flow diagram's small words at 15, the cost table fits its frame */
  .proof-facts { grid-template-columns: minmax(0, 1fr); }
  .proof-fact, .proof-fact:nth-child(2n) { padding: var(--s-16) var(--s-24); border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-fact:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .proof-fact:last-child { border-bottom: 0; }
  .proof-table > .table { min-width: 0; }
}
