/* /work/: the receipts and the build log */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rx-hero { padding: clamp(28px, 6vw, 72px) 0 56px; background: radial-gradient(80% 60% at 80% 0%, color-mix(in srgb, var(--brand-green) 14%, transparent), transparent 70%); }
.rx-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 15ch; margin: 0 0 22px; }
.rx-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0; }
.rx-totals { display: grid; gap: 12px; margin-top: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .rx-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rx-total { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 6px; align-content: end; }
.rx-total small { color: var(--muted); font-size: 13.5px; }
.rx-total b { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rx-total--big { grid-column: 1 / -1; background: linear-gradient(135deg, #0f2a1d, #08120d 70%); border-color: transparent; color: #e8eaf6; }
@media (min-width: 820px) { .rx-total--big { padding: 28px 32px; } }
.rx-total--big small, .rx-total--big span { color: #a9cbb8; }
.rx-total--big b { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.rx-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.rx-note a { color: var(--accent); }

.cmp { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.cmp__row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; border-top: 1px solid var(--line); }
.cmp__row:first-child { border-top: 0; }
.cmp__row--head { display: none; }
.cmp__label { font-weight: 600; color: var(--ink); }
.cmp__them { color: var(--muted); }
.cmp__them::before { content: "Traditional agency: "; font-weight: 600; }
.cmp__us { color: var(--ink); }
.cmp__us::before { content: "Frangoules: "; font-weight: 600; color: var(--brand-green); }
@media (min-width: 820px) {
  .cmp__row { grid-template-columns: .7fr 1.15fr 1.15fr; gap: 28px; padding: 20px 26px; align-items: start; }
  .cmp__row--head { display: grid; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 13.5px; font-weight: 600; color: var(--muted); }
  .cmp__row--head span:last-child { color: var(--brand-green); }
  .cmp__them::before, .cmp__us::before { content: none; }
  .cmp__us { background: color-mix(in srgb, var(--brand-green) 7%, transparent); margin: -20px -26px -20px 0; padding: 20px 26px; }
}
.story { margin: 28px 0 0; padding: 28px; border-radius: var(--radius-lg); border-left: 4px solid var(--brand-green); background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story blockquote { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }
.story figcaption { margin-top: 12px; color: var(--muted); font-size: 14.5px; }

.rc-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 18px; align-content: start; }
.rc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rc__head h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.02em; }
.rc__head a { color: var(--ink); text-decoration: none; }
.rc__head a:hover { color: var(--accent); }
.rc__status { font-size: 12.5px; color: var(--brand-green); font-weight: 600; white-space: nowrap; }
.rc__counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin: 0; }
.rc__counts div { display: grid; gap: 2px; }
.rc__counts dt { font-size: 12.5px; color: var(--muted); }
.rc__counts dd { margin: 0; font-size: 1.2rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rc__race { display: grid; gap: 10px; }
.rc__lane { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; }
.rc__who { font-size: 13px; color: var(--muted); grid-row: 1 / 3; }
.rc__bar { height: 10px; border-radius: 99px; width: var(--w); transform-origin: left; }
.rc__bar--agency { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.rc__bar--us { background: var(--brand-green); min-width: 10px; }
.rc__val { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.rc.is-in .rc__bar { animation: rc-grow 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rc-grow { from { transform: scaleX(0); } }
.rc__quote { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.rc__quote b { color: var(--ink); }

.lg__tools { display: grid; gap: 12px; margin-bottom: 22px; }
@media (min-width: 980px) { .lg__tools { grid-template-columns: 1fr 320px; align-items: center; } }
.lg__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.lg__chips::-webkit-scrollbar { display: none; }
.lg__chip { flex: none; appearance: none; font: 500 14px/1 var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 44px; cursor: pointer; }
.lg__chip[aria-pressed="true"] { color: #fff; background: var(--brand-green); border-color: var(--brand-green); }
.lg__search input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 400 15px/1 var(--font); padding: 0 14px; }
.lg { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .lg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lg__item > a, .lg__item > div { position: relative; height: 100%; display: grid; gap: 6px; align-content: start; padding: 18px 40px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.5; transition: border-color .2s, transform .2s; }
.lg__item > a:hover { border-color: var(--brand-green); transform: translateY(-2px); }
.lg__item b { color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.lg__meta { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.lg__item i { position: absolute; right: 16px; top: 18px; font-style: normal; color: var(--accent); }
.lg__more { margin-top: 22px; }
.lg__empty { color: var(--muted); }
.rx-method { max-width: 820px; }
.rx-method p { color: var(--muted); }
.rx-src a { color: var(--accent); }
.rx-cta { text-align: center; }
.rx-cta .section__lede { margin: 0 auto 26px; }
@media (prefers-reduced-motion: reduce) { .rc.is-in .rc__bar { animation: none; } }
.rc__fine { margin: -8px 0 0; font-size: 12.5px; color: var(--muted); }

/* Live view */
.live__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .live__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.live__stats { margin: 0; display: grid; gap: 12px; }
.live__stats div { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.live__stats dt { font-size: 13.5px; color: var(--muted); }
.live__stats dd { margin: 4px 0 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.live__log { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.live__log-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.live__dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.live__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-green) 20%, transparent); animation: lv-pulse 2s ease-in-out infinite; }
@keyframes lv-pulse { 50% { opacity: .35; } }
#lv-list { list-style: none; margin: 0; padding: 0; }
#lv-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
#lv-list li:first-child { border-top: 0; }
#lv-list time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
#lv-list em { font-style: normal; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 8px; }
@media (max-width: 520px) { #lv-list li { grid-template-columns: 64px minmax(0, 1fr); } #lv-list em { display: none; } }
@media (prefers-reduced-motion: reduce) { .live__dot::before { animation: none; } }

/* Proof on every receipt card: a real screenshot and a link to the live product */
.rc__shot { display: block; margin: -22px -22px 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.rc__bar-ui { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); font-size: 12px; color: var(--muted); }
.rc__bar-ui i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.rc__bar-ui span { margin-left: 8px; }
.rc__shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .5s ease; }
.rc__shot:hover img { transform: scale(1.02); }
.rc__links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; }
.rc__visit, .rc__case { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.rc__visit { color: #fff; background: var(--ink); padding: 0 16px; border-radius: 999px; }
:root[data-theme="dark"] .rc__visit { color: var(--bg); }
.rc__case { color: var(--accent); }
.rc__note { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .rc__shot img { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { .rc__shot img { transition: none; } }
/* Dark mode: the pressed filter chip sits on the bright green, so its text goes dark (contrast 2026-10-20). */
:root[data-theme="dark"] .lg__chip[aria-pressed="true"] { color: #06140d; }
