/* /features/proof, the exhibit with a lens. Every product part on the page is
   the proof page's own (proof_family.css, record.css, register.css); this file
   lays the page out, draws the lens, and sets the parts to their compact sizes. */

@layer components {
.pf-page {
  --rc-fill: var(--accent-strong);
  --pf-google: var(--info);
  --pf-trustgrowth: var(--accent);
  --pf-none: var(--warn);
  --pf-gap: 24px;
}
:where(.pf-page) :where(h3, dl, dd, figure, pre, blockquote) { margin: 0; }
.pf-page h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.pf-page > .pf-sec { display: flex; flex-direction: column; justify-content: center; padding: 96px 0 64px; }
.pf-page > .pf-sec--tone { background: var(--paper-2); }
.pf-sec--tone :is(.rc-tile, .rc-cardbox, .rc-seg) { background: var(--panel); }
.pf-sec--tone .rc-seg button[aria-pressed="true"] { background: var(--paper-2); }
@media (min-width: 1024px) { .pf-page > .pf-sec { min-height: 100svh; } }

.pf-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--pf-gap); margin-bottom: 32px; }
.pf-sechead p { margin-top: 12px; max-width: 44em; font-size: 18px; color: var(--ink-2); }
.pf-eg { display: inline-flex; align-items: center; flex: none; height: 26px; padding: 0 8px; border-radius: var(--ar-r); outline: 1px dashed var(--rule-strong); outline-offset: -1px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.pf-after { margin-top: 28px; font-size: 18px; }
.pf-after b { font-weight: 600; }
.pf-link { color: var(--accent-strong); font-weight: 600; text-underline-offset: 4px; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-part { background: var(--panel); border-radius: var(--ar-r); padding: 20px; min-width: 0; }
.pf-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--k); }
[data-k="google"] { --k: var(--pf-google); }
[data-k="trustgrowth"] { --k: var(--pf-trustgrowth); }
[data-k="none"] { --k: var(--pf-none); }

/* The record's tiles on this page's own boards. */
.pf-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-board--one { grid-template-columns: minmax(0, 1fr); }
.pf-board .rc-tile { min-height: 0; padding: 14px 16px; }
.pf-board .rc-tile__v { font-size: 40px; }

/* Hero: the headline row, the lens, then the sample record in a window. */
.pf-page > .pf-hero { min-height: calc(100svh - var(--nav-height)); padding: 28px 0; display: flex; flex-direction: column; }
.pf-hero > .wrap { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.pf-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pf-gap); align-items: end; }
.pf-head h1 { grid-column: 1 / 8; font-size: clamp(36px, 3.4vw, 50px); }
.pf-head__side { grid-column: 8 / 13; display: grid; gap: 14px; }
.pf-head__side p { font-size: 17px; line-height: 1.4; }
.pf-exhibit { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.pf-lens { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pf-gap); align-items: center; }
.pf-lens__set { grid-column: 1 / 8; justify-self: start; display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--ar-r); background: var(--panel); }
.pf-lens__line { grid-column: 8 / 13; display: flex; align-items: center; min-height: 2.8em; font-size: 17px; line-height: 1.4; }
.pf-lens__line b { font-weight: 600; }
.pf-lens__line [data-line]:not([data-line="all"]) { display: none; }
.pf-exhibit[data-lens] .pf-lens__line [data-line] { display: none; }
.pf-exhibit[data-lens="google"] .pf-lens__line [data-line="google"], .pf-exhibit[data-lens="trustgrowth"] .pf-lens__line [data-line="trustgrowth"], .pf-exhibit[data-lens="none"] .pf-lens__line [data-line="none"] { display: inline; }
.pf-lens__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--ar-r); background: transparent; color: var(--ink); font: 500 16px/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); }
.pf-lens__opt:disabled { cursor: default; }
.pf-lens__opt:enabled:hover { background: var(--paper-2); }
.pf-lens__opt:enabled:active { transform: translateY(1px); }
.pf-lens__n { min-width: 24px; padding: 3px 6px; border-radius: var(--ar-r); background: var(--paper-2); font-size: 14px; font-weight: 600; text-align: center; }
.pf-lens__opt[aria-checked="true"], .pf-lens__opt[aria-checked="true"]:hover { background: var(--ink); color: var(--paper); }
.pf-lens__opt[aria-checked="true"] .pf-lens__n { background: color-mix(in oklab, var(--paper) 18%, transparent); }

.pf-win { flex: 1; display: flex; flex-direction: column; min-width: 0; border-radius: var(--ar-r); background: var(--paper); box-shadow: 0 0 0 1px var(--rule); overflow: hidden; } /* taste-skill-ignore: the window's own edge */
.pf-win__bar { display: grid; grid-template-columns: 1fr minmax(0, 440px) 1fr; align-items: center; gap: 12px; min-height: 44px; padding: 6px 14px; background: var(--paper-2); font-size: 14px; }
.pf-win__dots { display: flex; gap: 6px; }
.pf-win__dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in oklab, var(--ink) 18%, transparent); }
.pf-win__url { padding: 6px 12px; border-radius: var(--ar-r); background: var(--panel); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-win__bar .pf-eg { justify-self: end; }
.pf-rec { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; padding: 20px 24px; align-items: stretch; }
.pf-rec__copy { grid-column: 1 / 7; display: flex; flex-direction: column; min-width: 0; }
.pf-rec__h { font-family: var(--font-display); font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.pf-rec .rc-name { margin-top: 12px; }
.pf-rec .rc-facts { margin-top: 12px; gap: 6px 18px; }
.pf-rec .pf-board { margin-top: auto; padding-top: 16px; }
.pf-rec .rc-tile__note { display: none; }
.pf-rec .rc-subs { font-size: 14px; }
.pf-rec .rc-subs b { font-size: 20px; }
.pf-rec .rc-player { padding: 20px 22px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.pf-rec .rc-gsc { margin-top: 12px; padding-top: 12px; }
.pf-rec .rc-gsc dd { font-size: 24px; }
.pf-rec .rc-reach { gap: 6px 14px; padding: 10px 14px; font-size: 15px; }
.pf-rec .rc-reach b { font-size: 18px; }
.pf-rec .rc-player__top { gap: 20px; }
.pf-rec .rc-gauge { max-width: 220px; }
.pf-rec .rc-pstats { gap: 10px; }
.pf-rec .rc-pstats dd { font-size: 28px; }
.pf-rec .rc-tierline { margin-top: 12px; }
.pf-rec .rc-src { margin-top: 12px; }
.pf-rec .rc-tile { gap: 6px; padding: 12px 14px; }
.pf-rec .rc-tile__v { font-size: 36px; }

/* A figure the lens can light. The chip and the marker are the lens's, not the record's. */
.pf-exhibit [data-src] { position: relative; z-index: 0; --k: var(--pf-google); }
.pf-exhibit [data-src="trustgrowth"] { --k: var(--pf-trustgrowth); }
.pf-exhibit [data-src="none"] { --k: var(--pf-none); }
.pf-exhibit [data-src]::before { content: ""; position: absolute; z-index: -1; inset: -4px -6px; border-radius: var(--ar-r); background: color-mix(in oklab, var(--k) 16%, transparent); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.pf-exhibit :is(.rc-tile, .rc-reach)[data-src]::before { inset: 0; }
.pf-exhibit .rc-tile__v[data-src] { align-self: flex-start; }
.pf-by { display: inline-flex; align-items: center; gap: 5px; font: 600 14px/1 var(--font-body); letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.pf-by::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--k); }
.pf-by--end { margin-left: 10px; vertical-align: middle; }
.pf-by--row { order: 3; margin-top: 6px; align-self: flex-start; }
.pf-by--corner { position: absolute; top: -2px; left: 0; }
.pf-by--tile { position: absolute; top: 14px; right: 16px; }
.pf-by--beside { position: absolute; left: calc(100% + 12px); top: 50%; margin-top: -7px; }
.pf-exhibit[data-lens] [data-src].is-lit::before { transform: scaleX(1); }

/* Who vouches: three ledger rows, each beside a part of the record. */
.pf-vouch { box-shadow: inset 0 2px 0 var(--ink); } /* taste-skill-ignore: the ledger's top rule */
.pf-vouch__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pf-gap); align-items: center; padding-block: 18px; box-shadow: inset 0 -1px 0 var(--rule); } /* taste-skill-ignore: ledger rows */
.pf-vouch__row h3 { grid-column: 1 / 4; display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2vw, 28px); }
.pf-vouch__row h3 .pf-dot { width: 14px; height: 14px; }
.pf-vouch__row > p { grid-column: 4 / 8; font-size: 18px; }
.pf-vouch__part { grid-column: 8 / 13; }
.pf-vouch__part .rc-gsc { margin: 0; padding: 0; box-shadow: none; }

/* A bad number stays: the record's chart beside one line the product prints. */
.pf-fall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--pf-gap); align-items: start; }
.pf-fall__chart { grid-column: 1 / 9; min-width: 0; }
.pf-fall__chart .rc-chartpanel { margin-top: 0; }
.pf-printed { grid-column: 9 / 13; display: grid; gap: 12px; }
.pf-printed figcaption { font-size: 16px; font-weight: 600; }
.pf-printed blockquote { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }

/* How to get one: three steps, each under its part. */
.pf-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pf-gap); }
.pf-steps > li { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pf-step__part { display: flex; flex-direction: column; justify-content: center; min-height: 300px; }
.pf-step__part > .rc-tiers { flex: 1; justify-content: center; }
.pf-step__form { padding: 24px; }
.pf-step__say h3 { font-size: 24px; }
.pf-step__say p { margin-top: 8px; font-size: 17px; color: var(--ink-2); }
.pf-settings { padding: 0; justify-content: flex-start; overflow: hidden; }
.pf-settings__bar { padding: 12px 20px; background: var(--paper-2); font-size: 15px; font-weight: 600; }
.pf-setting { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 20px 16px; cursor: pointer; }
.pf-setting > span { display: grid; gap: 3px; font-size: 19px; font-weight: 600; }
.pf-setting small { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.pf-switch { appearance: none; position: relative; width: 56px; height: 32px; flex: none; margin: 0; border-radius: 16px; background: var(--rule-strong); cursor: pointer; transition: background-color .2s var(--ease); }
.pf-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); transition: transform .22s var(--ease); }
.pf-switch:checked { background: var(--accent); }
.pf-switch:checked::after { transform: translateX(24px); }
.pf-setting__state { margin: 0 20px 20px; padding: 10px 12px; border-radius: var(--ar-r); background: var(--paper-2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-setting__off, .pf-settings:has(.pf-switch:not(:checked)) .pf-setting__on { display: none; }
.pf-settings:has(.pf-switch:not(:checked)) .pf-setting__off { display: inline; }

/* Three formats from one record. */
.pf-formats { display: grid; grid-template-columns: minmax(0, 3.7fr) minmax(0, 5fr) minmax(0, 3.3fr); gap: var(--pf-gap); align-items: start; }
.pf-fmt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pf-fmt h3 { font-size: 18px; font-weight: 600; }
.pf-fmt .tg-btn { align-self: flex-start; }
.pf-fmt .rc-cardbox { grid-column: auto; padding: 12px; }
.pf-stage { display: grid; place-items: center; padding: 44px 12px 36px; border-radius: var(--ar-r); background: var(--panel); overflow: hidden; }
.pf-badge { position: relative; display: block; width: 280px; height: 56px; }
.pf-badge img { display: block; width: 280px; height: 56px; }
.pf-dim { position: absolute; font-size: 14px; font-weight: 600; line-height: 1.2; }
.pf-dim--w { left: 0; top: -28px; width: 280px; padding-top: 2px; text-align: center; box-shadow: inset 0 1px 0 var(--ink), inset 1px 0 0 var(--ink), inset -1px 0 0 var(--ink); } /* taste-skill-ignore: a dimension mark */
.pf-dim--h { left: 288px; top: 0; height: 56px; display: flex; align-items: center; padding-left: 6px; box-shadow: inset 1px 0 0 var(--ink); } /* taste-skill-ignore: a dimension mark */
.pf-snip { padding: 14px 16px; border-radius: var(--ar-r); background: var(--code); color: var(--band-ink); font: 400 14px/1.6 var(--font-mono); overflow-x: auto; white-space: pre; tab-size: 2; }
.pf-snip--wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* What it does not prove: three lines down the screen. */
.pf-limits { box-shadow: inset 0 2px 0 var(--ink); } /* taste-skill-ignore: the list's top rule */
.pf-limits li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 20px; align-items: center; padding-block: clamp(20px, 4.4svh, 44px); box-shadow: inset 0 -1px 0 var(--rule); font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; } /* taste-skill-ignore: list rows */
.pf-limits svg { width: 36px; height: 36px; color: var(--poor); }

/* The one live section: our own record, no window and no example tag. */
.pf-page > .pf-ours { background: var(--accent-soft); }
.pf-page > .pf-ours[data-proof-exhibit="unpublished"] { min-height: 0; }
.pf-ours__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--pf-gap); align-items: center; }
.pf-ours__copy { grid-column: 1 / 6; display: grid; gap: 20px; justify-items: start; min-width: 0; }
.pf-ours__copy > p { font-size: 19px; max-width: 34ch; }
.pf-ours__copy .rg-one { grid-column: auto; justify-self: stretch; margin-top: 8px; padding: 26px 28px 24px; gap: 18px; }
.pf-ours__copy .rg-one__no { font-size: 72px; }
.pf-ours__copy .rg-one__mark { width: 44px; height: 44px; }
.pf-ours__copy .rg-one__say, .pf-ours__copy .rg-one__url { display: none; }
.pf-ours__live { grid-column: 6 / 13; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.pf-ours__live .rc-player { grid-column: auto; }
.pf-board--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pf-board--six .rc-tile { padding: 12px 8px; background: var(--panel); }
.pf-board--six .rc-tile__k { font-size: 14px; letter-spacing: -.02em; }
.pf-board--six .rc-tile__k span { font-size: 14px; }
.pf-board--six .rc-tile__note { display: none; }
.pf-board--six .rc-meter { background: var(--paper-2); }

/* Questions, then the close. */
.pf-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--pf-gap); }
.pf-qa__item { padding: 14px 0 16px; box-shadow: inset 0 1px 0 var(--rule); } /* taste-skill-ignore: flat question rows */
.pf-qa__item h3 { font-size: 19px; font-weight: 600; }
.pf-qa__item p { margin-top: 6px; max-width: 62ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.pf-page > .ar-close h2 { font-size: clamp(44px, 5.6vw, 80px); }

@media (min-width: 640px) { .pf-rec .rc-gauge__n b { font-size: 56px; } }
@media (max-width: 1279px) {
  .pf-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-fmt--json { grid-column: 1 / -1; }
  .pf-board--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-vouch__part .rc-gsc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .pf-page > .pf-sec { padding: 72px 0 56px; }
  .pf-head { row-gap: 16px; }
  .pf-head h1, .pf-head__side { grid-column: 1 / -1; }
  .pf-lens { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .pf-lens__set, .pf-lens__line { grid-column: 1 / -1; }
  .pf-rec__copy, .pf-rec .rc-player { grid-column: 1 / -1; }
  .pf-rec .rc-facts { display: flex; }
  .pf-rec .pf-board { margin-top: 0; }
  .pf-vouch__row { row-gap: 14px; align-items: start; }
  .pf-vouch__row h3 { grid-column: 1 / -1; }
  .pf-vouch__row > p { grid-column: 1 / 7; }
  .pf-vouch__part { grid-column: 7 / 13; }
  .pf-fall__chart, .pf-printed { grid-column: 1 / -1; }
  .pf-steps { grid-template-columns: minmax(0, 1fr); }
  .pf-steps > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--pf-gap); align-items: center; }
  .pf-step__form { padding: 16px; }
  .pf-step__say { order: -1; }
  .pf-step__part { min-height: 0; }
  .pf-ours__copy, .pf-ours__live { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .pf-page > .pf-sec { padding: 56px 0 40px; }
  .pf-sechead { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .pf-head h1 { font-size: 36px; }
  .pf-acts .tg-btn { flex: 1 1 auto; }
  .pf-lens__set { display: grid; justify-self: stretch; }
  .pf-lens__opt { min-height: 48px; }
  .pf-lens__n { margin-left: auto; }
  .pf-win__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-win__dots { display: none; }
  .pf-win__url { text-align: left; }
  .pf-rec { padding: 14px; gap: 14px; }
  .pf-rec__h { font-size: 30px; }
  .pf-rec .rc-facts { display: none; }
  .pf-rec .rc-player { padding: 14px; }
  .pf-rec .rc-pstats .pf-by { display: flex; margin: 4px 0 0; }
  .pf-board, .pf-board--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-board .rc-tile { grid-column: span min(var(--span, 1), 2); }
  .pf-board--one { grid-template-columns: minmax(0, 1fr); }
  .pf-by--beside { position: static; margin: 0 0 0 10px; vertical-align: middle; }
  .pf-vouch__row > p, .pf-vouch__part { grid-column: 1 / -1; }
  .pf-steps > li { grid-template-columns: minmax(0, 1fr); }
  .pf-step__say { order: 0; }
  .pf-formats { grid-template-columns: minmax(0, 1fr); }
  .pf-dim--h { display: none; }
  .pf-limits li { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
  .pf-limits svg { width: 28px; height: 28px; }
  .pf-qa { grid-template-columns: minmax(0, 1fr); }
  .pf-page > .ar-close h2 { font-size: 40px; }
}
}

/* Unlayered: tg-btn-quiet is a utility, and its paper-2 fill would vanish on a paper-2 section. */
.pf-sec--tone .tg-btn.tg-btn-quiet { background-color: var(--panel); }

/* The lens's one-shot motion, unlayered so it sits with the record's own. With
   no script, or reduced motion, every chip shows and nothing dims. */
@media (prefers-reduced-motion: no-preference) {
  .pf-exhibit [data-src] { transition: opacity .25s ease; }
  .pf-exhibit[data-lens] [data-src]:not(.is-lit) { opacity: .5; }
  .pf-exhibit[data-lens] [data-src]:not(.is-lit) .pf-by { opacity: 0; transform: translateX(-8px); }
  .pf-exhibit[data-lens] [data-src] .pf-by { transition: opacity .28s ease calc(var(--i, 0) * 34ms), transform .34s var(--ease) calc(var(--i, 0) * 34ms); }
  .pf-exhibit[data-lens] [data-src]::before { transition: transform .42s var(--ease) calc(var(--i, 0) * 34ms + 60ms); }
  .pf-exhibit[data-lens] [data-src]:not(.is-lit)::before { transition-duration: .12s; transition-delay: 0s; }
  .pf-exhibit[data-lens] .pf-lens__line span { animation: pf-line .3s ease both; }
}
@keyframes pf-line { from { opacity: 0; transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
  .pf-lens__opt:enabled:active { transform: none; }
  .pf-switch::after { transition: none; }
}
