/* Radar Teardowns — page styles. Colors only from the site tokens (tokens.css, generated
   from src/styles/global.css) plus a small, deliberate extension (see "new tokens" below),
   scoped to .rt so nothing here ever touches the real site header/footer chrome. The page
   needs no JS: every block below is complete without it — there is no teardown.js anymore. */

.rt { background: var(--color-ink); color: var(--color-fg); font-family: var(--font-sans); font-size: 15px; line-height: 1.55; }
.rt main { overflow-x: clip; }
.rt .wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.rt h1, .rt h2, .rt h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.rt p { margin: 0; }
.rt .wrap a { color: var(--color-fox); }
.rt .tabular { font-variant-numeric: tabular-nums; }

/* ── new tokens — a deliberate, narrow extension of the site palette, used ONLY by the
   funnel-composition bar (8 screen types need 8 visibly distinct tones; the site's own
   palette has 3 oranges + a gray scale) and the trend section's up/down figures. Nothing
   outside those two features may use these. ── */
.rt {
  --seg-info: #2dd4bf;
  --seg-loader: #555555;
  --seg-gate: #fbbf24;
  --seg-prediction: #a78bfa;
  --seg-reviews: #f472b6;
  --trend-good: #3ecf8e;
  --trend-bad: #f08a84;
}

/* ── hero ──────────────────────────────────────────────────────────── */
.rt .hero { padding: 168px 0 64px; }
.rt .crumbs { font-size: 13px; color: var(--color-dim); margin-bottom: 18px; }
.rt .crumbs a { color: var(--color-dim); text-decoration: none; }
.rt .crumbs a:hover { color: var(--color-fox); }
.rt .hero__kicker { font-size: 15px; font-weight: 500; color: var(--color-muted); margin: 0 0 16px; letter-spacing: 0.01em; }
.rt .hero__kicker a { color: var(--color-fox); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.rt .hero__kicker a:hover { color: var(--color-fox-deep); }
.rt .hero h1 { font-size: clamp(32px, 4.8vw, 48px); line-height: 1.08; max-width: 820px; }

/* ── subnav — a slim "on this page" rail in the right margin, fixed to the viewport (not the
   content column, which stays centered at 1040px regardless). Works as a plain anchor list with
   no JS at all; subnav.js adds a live scrollspy highlight (.is-active) as the reader scrolls —
   :has()+:target below is the fallback for just-clicked-a-link / no-JS, so there's always some
   highlight. Only room for the rail once the margin is wide enough that it can't crowd the
   1040px content column — hidden below that, where the page is just the plain single-column
   flow. A fixed right offset, not a calc() off 100vw: at 18px the widest label ("Facebook
   pages") makes the rail ~155px wide, and a calc() that assumes the margin splits exactly in
   half around the 1040px column (it doesn't quite, a scrollbar eats a little of it) measured as
   overlapping the content card right at the edge of a lower breakpoint — checked empirically,
   not just by eye. ── */
.rt .subnav {
  display: none;
}
@media (min-width: 1500px) {
  .rt .subnav {
    display: flex; flex-direction: column; gap: 20px;
    position: fixed; z-index: 5; top: 50%; transform: translateY(-50%);
    right: 48px;
  }
}
.rt .subnav a {
  display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500;
  color: var(--color-muted); text-decoration: none; white-space: nowrap; transition: color .15s;
}
.rt .subnav a:hover { color: var(--color-muted); }
.rt .subnav__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--color-line); transition: background .15s; }
.rt .subnav a.is-active { color: var(--color-fox); }
.rt .subnav a.is-active .subnav__dot { background: var(--color-fox); }
/* :target fallback for when subnav.js can't run at all (no JS, no IntersectionObserver) — once
   it does, html.rt-js is set and this whole block turns off, so a stale #target from an earlier
   click can never sit lit at the same time as the live .is-active section above. :target itself
   never clears on scroll, which is exactly why it can't be left running alongside the real
   scrollspy. :has() reaches back up from the targeted section to style an unrelated link
   elsewhere in the page; browsers without :has() just show no fallback highlight either way. */
html:not(.rt-js) .rt:has(#funnel:target) .subnav a[href="#funnel"],
html:not(.rt-js) .rt:has(#paywall:target) .subnav a[href="#paywall"],
html:not(.rt-js) .rt:has(#creatives:target) .subnav a[href="#creatives"],
html:not(.rt-js) .rt:has(#markets:target) .subnav a[href="#markets"],
html:not(.rt-js) .rt:has(#pages:target) .subnav a[href="#pages"],
html:not(.rt-js) .rt:has(#trend:target) .subnav a[href="#trend"] { color: var(--color-fox); }
html:not(.rt-js) .rt:has(#funnel:target) .subnav a[href="#funnel"] .subnav__dot,
html:not(.rt-js) .rt:has(#paywall:target) .subnav a[href="#paywall"] .subnav__dot,
html:not(.rt-js) .rt:has(#creatives:target) .subnav a[href="#creatives"] .subnav__dot,
html:not(.rt-js) .rt:has(#markets:target) .subnav a[href="#markets"] .subnav__dot,
html:not(.rt-js) .rt:has(#pages:target) .subnav a[href="#pages"] .subnav__dot,
html:not(.rt-js) .rt:has(#trend:target) .subnav a[href="#trend"] .subnav__dot { background: var(--color-fox); }

/* ── glance strip ──────────────────────────────────────────────────── */
.rt .glance {
  /* auto-fit, not a fixed column count: this card shows 2–3 rows depending on what data the
     brand actually has (see model.mjs's glance filter) — a hardcoded repeat(4, …) left a blank
     4th cell once Monthly visits was removed as a row every brand had. auto-fit always splits
     the full width evenly across however many rows exist, no empty tracks, ever. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px;
  background: var(--color-line); border: 1px solid var(--color-line); border-radius: 14px; overflow: hidden;
  margin: 32px 0 0;
}
.rt .glance > div { background: var(--color-panel); padding: 22px 24px; min-width: 0; }
.rt .glance dt { font-size: 12px; color: var(--color-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.rt .glance dd { margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 500; font-family: var(--font-display); }
.rt .glance dd small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 12px; color: var(--color-muted); margin-top: 2px; }

/* ── section shell — every analysis block is a self-contained "card" ─ */
.rt section.card {
  background: var(--color-panel); box-shadow: inset 0 0 0 1px var(--color-line); border-radius: 18px;
  padding: 34px clamp(24px, 3vw, 40px) 38px; margin: 28px 0 0;
  scroll-margin-top: 94px; /* clears the real site's fixed header when a subnav link jumps here */
}
.rt .card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.rt .card__eyebrow { font-size: 12px; font-weight: 600; color: var(--color-fox); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.rt .card h2 { font-size: clamp(20px, 2.4vw, 26px); }
.rt .card__sub { color: var(--color-muted); font-size: 14.5px; max-width: 680px; margin-top: 14px; }
.rt .card__note { margin-top: 18px; font-size: 13px; color: var(--color-dim); border-top: 1px solid var(--color-line); padding-top: 14px; }
.rt .col-h { font-size: 14px; color: var(--color-muted); font-weight: 600; margin: 0 0 10px; }
.rt .arrow { width: 15px; height: 15px; flex: none; transition: transform .25s ease; }
.rt a:hover > .arrow { transform: translateX(3px); }

/* ── funnel section: filmstrip + composition bar ──────────────────── */
.rt .filmstrip { display: flex; gap: 14px; overflow-x: auto; padding: 18px 2px 6px; margin: 0 -2px; scrollbar-width: thin; }
.rt .filmstrip figure { margin: 0; flex: none; width: 128px; }
.rt .filmstrip .frame {
  width: 100%; aspect-ratio: 390 / 844; border-radius: 16px; overflow: hidden; background: var(--color-panel-2);
  box-shadow: inset 0 0 0 1px var(--color-line);
}
.rt .filmstrip img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rt .filmstrip figcaption { font-size: 11.5px; color: var(--color-dim); text-align: center; margin-top: 7px; }
.rt .bar__label { font-size: 12px; font-weight: 600; color: var(--color-dim); text-transform: uppercase; letter-spacing: 0.04em; margin: 20px 0 10px; }
.rt .bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; }
.rt .bar span { height: 100%; }
.rt .bar-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--color-muted); }
.rt .bar-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* ── paywall section ───────────────────────────────────────────────── */
.rt .paywall-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 18px; }
/* usually just the one paywall screen; a real "checkout"-typed screen stacks below it with its
   own caption when the brand's data has one, so a tactic that only shows up at checkout (a
   re-applied promo, an alternate payment method) still has a picture backing it up */
.rt .paywall-shots { display: flex; flex-direction: column; gap: 16px; }
.rt .paywall-shots figure { margin: 0; }
.rt .paywall-shots figcaption { margin-top: 6px; font-size: 12px; color: var(--color-dim); text-align: center; }
/* No fixed shape here. The filmstrip crops every step to one phone silhouette on purpose, but
   this card shows a single screen as evidence, and a capture taken at a different phone size
   then sits in a frame taller than itself with a dead strip under it. The image's own width and
   height attributes reserve the space, so nothing shifts while it loads. */
.rt .paywall-grid .frame { width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6), inset 0 0 0 1px var(--color-line); }
.rt .paywall-grid img { width: 100%; height: auto; display: block; }
.rt .plans { width: 100%; border-collapse: collapse; margin-top: 4px; }
.rt .plans th { text-align: left; font-size: 12px; color: var(--color-dim); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; padding: 0 0 8px; }
.rt .plans td { padding: 12px 0; border-top: 1px solid var(--color-line); vertical-align: middle; }
.rt .plan-name { font-weight: 600; }
.rt .plan-badge { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--color-fox-deep); background: color-mix(in srgb, var(--color-fox) 14%, transparent); padding: 2px 8px; border-radius: 999px; }
.rt .price-new { font-weight: 700; font-size: 16px; }
.rt .price-old { color: var(--color-dim); text-decoration: line-through; margin-left: 6px; font-size: 13px; }
.rt .tactics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.rt .tactic { background: var(--color-panel-2); border-radius: 16px; padding: 24px 26px; }
.rt .tactic b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.rt .tactic span { display: block; color: var(--color-muted); font-size: 14px; line-height: 1.5; }

/* ── creatives section ─────────────────────────────────────────────── */
.rt .ad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.rt .ad-card { box-shadow: inset 0 0 0 1px var(--color-line); border-radius: 14px; overflow: hidden; background: var(--color-panel-2); }
.rt .ad-card .thumb { aspect-ratio: 4 / 5; background: var(--color-line); overflow: hidden; }
.rt .ad-card img, .rt .ad-card video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.rt .ad-card .meta { padding: 12px 14px 14px; }
.rt .ad-card .meta p.t { font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.rt .ad-card .meta p.m { font-size: 12px; color: var(--color-muted); }
.rt .ad-card .meta p.link { font-size: 11.5px; color: var(--color-dim); margin-top: 6px; overflow-wrap: anywhere; }
.rt table.angles { width: 100%; border-collapse: collapse; margin-top: 22px; }
.rt table.angles th { text-align: left; font-size: 12px; color: var(--color-dim); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 12px 8px 0; }
.rt table.angles td { padding: 12px 12px 12px 0; border-top: 1px solid var(--color-line); font-size: 13.5px; vertical-align: top; }
.rt table.angles td.angle { font-weight: 600; white-space: nowrap; }
.rt table.angles td.ex { position: relative; color: var(--color-muted); font-style: italic; }

/* ── markets / Facebook pages tables ───────────────────────────────── */
.rt .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
.rt .rank-table { width: 100%; border-collapse: collapse; }
.rt .rank-table th { text-align: left; font-size: 11.5px; color: var(--color-dim); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 8px 8px 0; }
.rt .rank-table td { padding: 9px 8px 9px 0; border-top: 1px solid var(--color-line); font-size: 13.5px; }
.rt .rank-table td.num { text-align: right; font-weight: 600; }
.rt .rank-table .bar-cell { position: relative; }
.rt .rank-table .bar-cell .fill { position: absolute; inset: 4px 0; background: color-mix(in srgb, var(--color-fox) 14%, transparent); border-radius: 4px; z-index: 0; }
.rt .rank-table .bar-cell .rank-label { position: relative; z-index: 1; }
/* a real value, hidden behind a plain blur. In a rank row the magnitude bar carries it too, so
   the whole cell blurs as one soft shape — blurring only the text left it smeared over a crisp
   bar, which read as two mismatched layers rather than one hidden value. */
.rt .blurred { filter: blur(5px); user-select: none; }
/* one badge per table, centered on the blurred column itself: it sits inside the middle blurred
   cell, so the cell's own box does the centering, whatever width that column renders at. The
   blur never changes on hover (no partial reveal). */
.rt .blur-table { position: relative; display: block; text-decoration: none; color: inherit; cursor: pointer; }
.rt .table-unlock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  /* sized by its own content, not by the cell: positioned from left:50%, its shrink-to-fit width
     would otherwise be capped at the cell's remaining half and the nowrap text would spill out
     past the pill's edge */
  display: flex; width: max-content; align-items: center; gap: 7px; white-space: nowrap;
  /* the cell it sits in may be styled (the ad-copy column is italic) — the badge is its own
     thing, so it sets its own type rather than inheriting the hidden value's */
  font-size: 12.5px; font-weight: 600; font-style: normal; line-height: 1; letter-spacing: .01em;
  padding: 8px 14px; border-radius: 999px; color: var(--color-fg);
  background: color-mix(in srgb, var(--color-ink) 92%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-fox) 30%, var(--color-line));
  transition: box-shadow .2s;
}
/* the badge wears the fox mark alone, without the "FunnelFox" wordmark beside it. logo.svg is
   the full lockup (136×28) whose mark occupies the leading 32.75 units, so at a 14px-tall render
   (68px wide) the mark ends at 16.4px — this window shows it and clips the wordmark off. */
.rt .table-unlock__mark { display: block; width: 17px; height: 14px; overflow: hidden; flex: none; }
/* the shared site stylesheet caps every img at max-width:100%, which would shrink the lockup to
   the crop window's width instead of letting it overflow and be clipped — pin its real size */
.rt .table-unlock__logo { display: block; width: 68px; max-width: none; height: 14px; }
.rt .blur-table:hover .table-unlock { box-shadow: inset 0 0 0 1px var(--color-fox); }

/* ── trend ──────────────────────────────────────────────────────────── */
.rt .trend-stat { display: flex; align-items: center; gap: 16px; margin: 18px 0 4px; flex-wrap: wrap; }
.rt .trend-stat .big { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--trend-good); line-height: 1; }
.rt .trend-stat .big.is-down { color: var(--trend-bad); }
.rt .trend-stat .lbl { color: var(--color-muted); font-size: 14px; max-width: 360px; }
/* teased as one single block — the banner right below is the one CTA, no overlay badge needed
   on top of a stat this size */
.rt .blur-value-block { filter: blur(4.5px); user-select: none; }
.rt .teaser-cta { display: flex; justify-content: center; padding: 0; }

/* ── radar CTA — one big link-card pitching FunnelFox Market Radar itself, used at the
   bottom of the trend section on a brand page and standalone on the hub page ── */
.rt .radar-cta {
  /* spans the full width of the teaser frame on purpose, so it covers the blurred rows
     peeking at its sides instead of floating as a narrower card above them — the copy inside
     stays at its old, narrower measure (fixed px below) so widening the frame doesn't reflow it */
  position: relative; display: block; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--color-fg);
  width: 100%; max-width: none; margin-top: 32px; border-radius: 22px; padding: 46px 48px 42px; text-align: left;
  background: var(--color-ink-2); box-shadow: 0 24px 48px -20px rgba(0,0,0,.6); transition: box-shadow .25s;
}
.rt .radar-cta:hover { box-shadow: 0 24px 56px -16px rgba(0,0,0,.65); }
.rt .radar-cta__glow {
  position: absolute; z-index: -1; right: -20%; top: -55%; width: 85%; height: 170%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-fox-deep) 40%, transparent), transparent);
}
.rt .radar-cta__top { position: relative; z-index: 1; display: flex; align-items: center; margin-bottom: 28px; }
.rt .radar-cta__logo { height: 24px; width: auto; display: block; }
.rt .radar-cta__h, .rt .radar-cta__sub, .rt .radar-cta__btn { position: relative; z-index: 1; }
.rt .radar-cta__h { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.2; margin: 0 0 14px; color: var(--color-fg); max-width: 460px; }
.rt .radar-cta__sub { font-size: 15.5px; line-height: 1.55; color: var(--color-on-ink-2); margin: 0 0 26px; max-width: 430px; }
.rt .radar-cta__btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 15px 32px; border-radius: 999px;
  font-size: 17px; font-weight: 500; color: #f9fafb; background: var(--color-fox-deep); transition: background .2s;
}
.rt .radar-cta:hover .radar-cta__btn { background: var(--color-fox); }
.rt .radar-cta__arrow, .rt .radar-cta__btn .arrow { width: 15px; height: 15px; flex: none; transition: transform .25s ease; }
.rt .radar-cta:hover .radar-cta__btn .arrow { transform: translateX(3px); }

/* radar mark icon — small inline version (unused for now, kept for any future compact use)
   and the large decorative background version behind the CTA copy */
.rt .radar-mark {
  position: relative; display: inline-block; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background:
    radial-gradient(circle, var(--color-fox) 0 2.5px, transparent 3px),
    radial-gradient(circle, transparent 0 9px, color-mix(in srgb, var(--color-fox) 45%, transparent) 9.5px 10.5px, transparent 11px),
    radial-gradient(circle, transparent 0 15px, color-mix(in srgb, var(--color-fox) 30%, transparent) 15.5px 16.5px, transparent 17px);
  overflow: hidden;
}
.rt .radar-mark--bg {
  position: absolute; z-index: 0; width: 60%; height: auto; aspect-ratio: 1; right: -8%; bottom: -22%;
  background:
    radial-gradient(circle, var(--color-fox) 0 1.2%, transparent 1.6%),
    radial-gradient(circle, transparent 0 35%, color-mix(in srgb, var(--color-fox) 40%, transparent) 36% 38%, transparent 40%),
    radial-gradient(circle, transparent 0 58%, color-mix(in srgb, var(--color-fox) 25%, transparent) 59% 61%, transparent 63%),
    radial-gradient(circle, transparent 0 80%, color-mix(in srgb, var(--color-fox) 14%, transparent) 81% 83%, transparent 85%);
}
.rt .radar-mark__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--color-fox) 55%, transparent), transparent 25%);
  animation: rt-sweep 3.2s linear infinite;
}
@keyframes rt-sweep { to { transform: rotate(1turn); } }

/* ── similar apps — small link-card grid, kept from the earlier design, reskinned to the
   new card system (the approved unified design didn't reach this section, so it's additive
   rather than a pixel-matched port) ── */
.rt .similar-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rt .similar-card {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; border-radius: 18px; text-decoration: none; color: var(--color-fg);
  background: var(--color-panel-2); box-shadow: inset 0 0 0 1px var(--color-line); transition: background .25s, box-shadow .25s;
}
.rt .similar-card:hover { background: var(--color-panel); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-fox) 45%, transparent); }
.rt .similar-card__name { font-size: 18px; font-weight: 500; overflow-wrap: break-word; min-width: 0; padding-right: 22px; }
.rt .similar-card__num { margin-top: 26px; font-size: 36px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--color-fox); }
.rt .similar-card__label { margin-top: 8px; font-size: 14px; color: var(--color-muted); }
.rt .similar-card .arrow { position: absolute; top: 24px; right: 20px; color: var(--color-muted); }

/* ── hub page: search, category filter, brand grid ────────────────── */
.rt .hero__sub { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--color-muted); max-width: 640px; }
.rt #browse { margin: 44px 0 0; }
.rt .search-box { position: relative; max-width: 360px; }
.rt .search-box__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--color-dim); pointer-events: none; }
.rt .search-box input {
  width: 100%; font: inherit; font-size: 14px; color: var(--color-fg); background: var(--color-panel-2);
  border: 1px solid var(--color-line); border-radius: 999px; padding: 10px 16px 10px 40px; outline: none; transition: border-color .15s;
}
.rt .search-box input::placeholder { color: var(--color-dim); }
.rt .search-box input:focus { border-color: color-mix(in srgb, var(--color-fox) 55%, transparent); }
.rt .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rt .chip {
  font: inherit; cursor: pointer; border: 1px solid var(--color-line); background: var(--color-panel-2); color: var(--color-muted);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s, color .15s, border-color .15s;
}
.rt .chip span { font-variant-numeric: tabular-nums; color: var(--color-dim); font-size: 11.5px; }
.rt .chip:hover { border-color: color-mix(in srgb, var(--color-fox) 50%, transparent); color: var(--color-fg); }
.rt .chip.is-active { background: var(--color-fox); border-color: var(--color-fox); color: var(--color-fg); }
.rt .chip.is-active span { color: rgba(255,255,255,.75); }
.rt .brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.rt .brand-card {
  display: block; text-decoration: none; color: inherit; background: var(--color-panel-2); box-shadow: inset 0 0 0 1px var(--color-line);
  border-radius: 14px; padding: 16px 18px; position: relative; transition: box-shadow .15s, transform .15s;
}
.rt a.brand-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-fox) 45%, transparent); }
.rt .brand-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rt .brand-card__logo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex: none; background: var(--color-line); }
.rt .brand-card__logo--fallback { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--color-dim); }
.rt .brand-card__cat { font-size: 11px; color: var(--color-dim); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt .brand-card__name { font-size: 16px; font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; }
.rt .brand-card__stats { display: flex; gap: 18px; margin: 0; }
.rt .brand-card__stats div { display: flex; flex-direction: column; gap: 2px; }
.rt .brand-card__stats dt { font-size: 10.5px; color: var(--color-dim); text-transform: uppercase; letter-spacing: .03em; }
.rt .brand-card__stats dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rt .show-more-row { display: flex; justify-content: center; margin-top: 28px; }
.rt .show-more-btn {
  font: inherit; cursor: pointer; border: 1px solid var(--color-line); background: var(--color-panel-2); color: var(--color-fg);
  padding: 10px 24px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s;
}
.rt .show-more-btn:hover { border-color: color-mix(in srgb, var(--color-fox) 50%, transparent); background: var(--color-panel); }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rt .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rt .hero { padding: 132px 0 44px; }
  .rt section.card { padding: 26px 20px 30px; }
  .rt .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt .paywall-grid { grid-template-columns: minmax(0, 1fr); }
  .rt .paywall-shots { flex-direction: row; max-width: 100%; }
  .rt .paywall-shots figure { flex: 1; min-width: 0; }
  .rt .paywall-grid .frame { max-width: 220px; margin: 0 auto; }
  .rt .two-col { grid-template-columns: minmax(0, 1fr); }
  .rt .brand-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  /* the badge is wider than either blurred column at this size, so centring it on the column
     would hang it off the edge of the card. The ad-copy cell has nothing else positioned against
     it, so it can simply centre on the whole table; the name cell has to stay the bar's
     containing block, so its badge sits flush with the column's left edge instead — which is the
     table's left edge too, so it still reads as sitting on the blur. */
  .rt table.angles td.ex { position: static; }
  .rt .rank-table .bar-cell .table-unlock { left: 0; transform: translate(0, -50%); }
}
@media (max-width: 640px) {
  .rt .ad-grid, .rt .tactics { grid-template-columns: minmax(0, 1fr); }
  .rt .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rt .radar-cta__h, .rt .radar-cta__sub { max-width: 100%; }
}

/* real footer uses Tailwind's sm:/lg: breakpoints tied to actual viewport width — force our
   own, lower thresholds so it never falls back to a lopsided grid at in-between widths.
   footer is a sibling of <main> inside body.rt, hence a descendant selector, not "+". */
.rt footer .grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 2rem 1.5rem !important; }
@media (min-width: 560px) {
  .rt footer .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 760px) {
  .rt footer .grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 1.5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .rt .radar-mark__sweep { animation: none; }
  .rt *, .rt *::before, .rt *::after { transition: none !important; }
}

/* ── zoom: every screenshot opens full size ────────────────────────── */
.rt .zoom { display: block; cursor: zoom-in; }
/* The link wraps the picture, so it becomes what the picture's height: 100% is measured
   against. Left at auto height the thumbnail falls back to its own proportion and stops short
   of the frame, leaving a dark band under every screen that was shot at a different phone size.
   The frame has a definite height, so the link takes all of it and the picture fills again. */
.rt .filmstrip .zoom { width: 100%; height: 100%; }
.rt .zoom:focus-visible { outline: 2px solid var(--color-fox); outline-offset: 3px; }

/* The viewer the zoom links open when the page's optional script is running. With no script the
   links still work on their own — they open the image file in its own tab — so there is nothing
   here to hide when there is no JS. */
.rt-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  padding: 32px; background: color-mix(in srgb, var(--color-ink) 88%, transparent); cursor: zoom-out; }
.rt-lightbox.is-open { display: flex; }
.rt-lightbox__img { max-width: min(560px, 100%); max-height: calc(100vh - 64px); width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); cursor: default; }
.rt-lightbox__close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: var(--color-panel-2); color: var(--color-fg); font-size: 26px; line-height: 1; cursor: pointer; }
.rt-lightbox__close:hover { background: var(--color-panel); }
.rt-lightbox__close:focus-visible { outline: 2px solid var(--color-fox); outline-offset: 2px; }
html.rt-lightbox-open { overflow: hidden; }
