/* Flettons v2 — proof pages: case studies index, case-study details, reviews.
   Loaded only by those views, so the cs-/rv- blocks below are group-wide;
   page-specific rules are scoped under body.route-proof-*. */

/* Cropped evidence photo -------------------------------------------------
   Shows one region of a larger report image without a new asset.
   --iw: natural width of the source image; --x/--y/--w/--h: region in source pixels. */
.shot { position: relative; overflow: hidden; margin: 0; aspect-ratio: var(--w) / var(--h); border-radius: var(--r); background: var(--bone-3); }
.shot img { position: absolute; top: 0; left: calc(var(--x) / var(--w) * -100%); width: calc(var(--iw) / var(--w) * 100%); max-width: none; height: auto; margin-top: calc(var(--y) / var(--w) * -100%); }
.sec--ink .shot { background: var(--ink-3); }

.cs-fig { margin: 0; }
.cs-fig .shot + .shot { margin-top: 12px; }
.cs-fig figcaption { margin-top: 14px; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.cs-fig figcaption span { margin-right: 8px; font-weight: 600; color: var(--accent-ink); }
.sec--ink .cs-fig figcaption { color: var(--on-dark-muted); }
.sec--ink .cs-fig figcaption span { color: var(--accent-bright); }
.cs-fig--portrait { justify-self: end; width: min(100%, 380px); }

/* Big serif money figure */
.cs-figure { font-family: var(--serif); font-weight: 400; line-height: 0.95; letter-spacing: -0.025em; font-variation-settings: "SOFT" 20, "opsz" 144; font-variant-numeric: lining-nums; white-space: nowrap; }
.cs-label { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; color: var(--muted); }

/* Hero aside: case file, track record, rating */
.page-hero .stars { color: var(--accent-bright); }
.page-hero__aside .link { color: var(--accent-bright); font-size: 0.95rem; }
.cs-file__figure { display: grid; gap: 10px; padding: 4px 0 20px; border-bottom: 1px solid var(--line-dark); }
.cs-file__figure .cs-figure { font-size: clamp(3rem, 2.2rem + 2.2vw, 4.2rem); color: var(--on-dark); }
.cs-file__figure .cs-label { color: var(--on-dark-muted); }
.page-hero__aside .cs-file__dl { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.cs-track { margin: 6px 0 0; border-top: 1px solid var(--line-dark); }
.page-hero__aside .cs-track { gap: 0; }
.page-hero__aside .cs-track > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.page-hero__aside .cs-track dt { order: 2; text-align: right; }
.page-hero__aside .cs-track dd { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1; font-variation-settings: "SOFT" 20, "opsz" 72; white-space: nowrap; }
.cs-rics { width: 124px; height: auto; margin-top: 10px; opacity: 0.92; }
.rv-score__big { font-family: var(--serif); font-size: clamp(4.2rem, 3rem + 3vw, 5.8rem); line-height: 0.9; letter-spacing: -0.02em; font-variation-settings: "SOFT" 20, "opsz" 144; }
.rv-score__big span { margin-left: 6px; font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: 0; color: var(--on-dark-muted); }
.rv-score p { color: var(--on-dark-muted); }

/* Case-study detail: overview ------------------------------------------- */
.cs-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.cs-overview h2 { margin-bottom: 30px; }
.cs-overview .prose p { font-size: 1.1rem; }
.cs-overview .checks { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Case-study detail: findings evidence list ------------------------------ */
.cs-findings { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.cs-findings__head { position: sticky; top: calc(var(--header-h) + 32px); }
.cs-findings__head h2 { margin-bottom: 24px; }
.cs-findings__head .cs-fig { margin-top: 40px; }
.findings { display: grid; border-top: 1px solid var(--line-dark); }
.finding { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(128px, 172px); gap: 10px 26px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line-dark); }
.finding__body { display: grid; gap: 8px; }
.finding__n { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-bright); }
.finding h3 { font-size: 1.18rem; color: var(--on-dark); }
.finding p { font-size: 0.98rem; color: var(--on-dark-muted); }

/* Case-study detail: outcome --------------------------------------------- */
.cs-outcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.cs-outcome h2 { display: grid; gap: 18px; }
.cs-outcome h2 .cs-figure { font-size: clamp(4.4rem, 2.2rem + 6.6vw, 8.8rem); color: var(--accent-ink); }
.cs-outcome .prose { margin-top: 34px; }
.cs-outcome .prose p { font-size: 1.1rem; }
.cs-outcome__side { display: grid; gap: 36px; }
.cs-quote { margin: 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.cs-quote p { font-family: var(--serif); font-size: clamp(1.55rem, 1.15rem + 1.2vw, 2.3rem); line-height: 1.24; letter-spacing: -0.01em; font-variation-settings: "SOFT" 40, "opsz" 72; text-wrap: pretty; }
.cs-quote footer { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }
.cs-quote--sm { border-top-color: var(--line); }
.cs-quote--sm p { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); }

.cs-more { display: grid; grid-template-columns: minmax(0, 0.6fr) repeat(2, minmax(0, 1fr)); gap: 16px 48px; align-items: start; margin-top: clamp(64px, 7vw, 104px); padding-top: 30px; border-top: 1px solid var(--line); }
.cs-more .eyebrow { margin: 4px 0 0; }
.cs-more a { display: grid; gap: 6px; padding-left: 20px; border-left: 1px solid var(--line); }
.cs-more a strong { font-weight: 600; line-height: 1.35; }
.cs-more a span { font-size: 0.92rem; color: var(--muted); }
.cs-more a .link { color: var(--accent-ink); font-size: 0.95rem; }
.cs-more a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.cta .page-hero__meta { margin-top: 28px; }

/* Case studies index ----------------------------------------------------- */
body.route-proof-caseStudy .cs-list { display: grid; gap: clamp(72px, 9vw, 136px); }
body.route-proof-caseStudy .cs-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
body.route-proof-caseStudy .cs-item:nth-child(even) .cs-item__img { order: 2; }
body.route-proof-caseStudy .cs-item__img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
body.route-proof-caseStudy .cs-item__body { display: grid; gap: 16px; max-width: 34rem; }
body.route-proof-caseStudy .cs-item__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.9rem; color: var(--on-dark-muted); }
body.route-proof-caseStudy .cs-item__meta li { display: inline-flex; align-items: center; gap: 8px; }
body.route-proof-caseStudy .cs-item__figure { display: grid; gap: 14px; margin: 4px 0 6px; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
body.route-proof-caseStudy .cs-item__figure .cs-figure { font-size: clamp(3.6rem, 2rem + 4.6vw, 6.6rem); color: var(--on-dark); }
body.route-proof-caseStudy .cs-item__figure .cs-label { color: var(--on-dark-muted); }
body.route-proof-caseStudy .cs-item__body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem); line-height: 1.14; letter-spacing: -0.01em; font-variation-settings: "SOFT" 40, "opsz" 48; color: var(--on-dark); text-wrap: balance; }
body.route-proof-caseStudy .cs-item__body p { color: var(--on-dark-muted); }
body.route-proof-caseStudy .cs-item__outcome strong { margin-right: 8px; font-weight: 600; color: var(--on-dark); }
body.route-proof-caseStudy .cs-item__body .link { margin-top: 6px; }
body.route-proof-caseStudy .cs-voices .cs-quote--sm { max-width: 46rem; margin: clamp(48px, 5vw, 72px) auto 0; text-align: center; }
body.route-proof-caseStudy .cs-voices__more { margin-top: 40px; text-align: center; }

/* Reviews ---------------------------------------------------------------- */
body.route-proof-reviews .quote .stars { display: block; margin-bottom: 24px; font-size: 1.05rem; }
body.route-proof-reviews .trustindex-widget-shell { padding: clamp(18px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.45); }
body.route-proof-reviews .trustindex-widget-frame:not(:has(> :not(script):not(:empty), iframe))::before { content: "Loading the latest Trustindex reviews\2026"; display: grid; place-items: center; min-height: 200px; font-size: 0.95rem; color: var(--muted); }
body.route-proof-reviews .rv-voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); }
body.route-proof-reviews .rv-voice { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line-dark); }
body.route-proof-reviews .rv-voice p { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem); line-height: 1.28; letter-spacing: -0.01em; font-variation-settings: "SOFT" 40, "opsz" 48; }
body.route-proof-reviews .rv-voice footer { display: grid; gap: 10px; align-self: end; font-size: 0.92rem; color: var(--on-dark-muted); }
body.route-proof-reviews .rv-voices + .stat-row { margin-top: clamp(64px, 7vw, 104px); grid-template-columns: repeat(3, 1fr); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1279px) {
  .cs-findings, .cs-outcome { grid-template-columns: 1fr; }
  .cs-findings__head { position: static; max-width: 46rem; }
  .cs-more { grid-template-columns: 1fr 1fr; }
  .cs-more .eyebrow { grid-column: 1 / -1; }
  body.route-proof-caseStudy .cs-item { grid-template-columns: 1fr 1fr; }
  body.route-proof-reviews .rv-voices { grid-template-columns: 1fr; }
  body.route-proof-reviews .rv-voice { grid-template-rows: auto; }
  body.route-proof-reviews .rv-voices + .stat-row > div:nth-child(3) { padding-left: 28px; border-left: 1px solid var(--line-dark); }
  body.route-proof-reviews .rv-voices + .stat-row > div:nth-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 820px) {
  .cs-overview { grid-template-columns: 1fr; }
  .page-hero__aside .cs-file__dl { grid-template-columns: 1fr; gap: 12px; }
  .finding { grid-template-columns: 44px minmax(0, 1fr); gap: 10px 16px; padding: 24px 0; }
  .finding .icon-tile { width: 44px; height: 44px; }
  .finding .shot { grid-column: 2; width: min(100%, 220px); }
  .cs-more { grid-template-columns: 1fr; }
  .cs-more a { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  body.route-proof-caseStudy .cs-item { grid-template-columns: 1fr; gap: 28px; }
  body.route-proof-caseStudy .cs-item:nth-child(even) .cs-item__img { order: 0; }
  body.route-proof-caseStudy .cs-item__img { aspect-ratio: 4 / 3; }
  body.route-proof-reviews .rv-voices + .stat-row { grid-template-columns: 1fr; }
  body.route-proof-reviews .rv-voices + .stat-row > div:nth-child(n) { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  body.route-proof-reviews .rv-voices + .stat-row > div:last-child { border-bottom: 0; }
}
