/* ── AI Visibility Index — category research report (/ai-index/<category>) ── */
/* A research publication in the Index's visual language (avi.css); only the
   report-specific pieces live here. */

/* masthead: a journal's running head under the nav */
.rp-masthead { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.rp-masthead span:nth-child(2) { color: var(--mut); }
.rp-masthead::after { content: none; }

/* atmosphere: violet haze behind the hero, like the orb's halo bleeding into the page */
.rp .rp-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(60% 55% at 72% 40%, rgba(139,124,255,.13), transparent 70%); pointer-events: none; z-index: -1; }
.rp .rp-hero { padding-top: clamp(28px, 5vh, 60px); }
/* the edition tag sits below the orb, never over its rim */
.rp-hero .avi-visual { grid-template-columns: 1fr; justify-items: center; row-gap: 26px; }
.rp-hero .avi-orb { width: min(360px, 50vw); }
.rp-hero .avi-tag { position: static; justify-self: end; margin-right: 6%; }
.rp-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.rp-hero-cta .avi-ghost { margin-top: 0; }
.avi-eyebrow[href] { text-decoration: none; }
.avi-hero .lede strong { color: var(--ink); font-weight: 600; }

/* chapter head: big, faint numeral + small caps label */
.rp-chap { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.rp-chap b { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -.02em; color: rgba(183,170,255,.55); }
.rp-chap span { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #b7aaff; font-weight: 600; }

/* glass panel — the podium/board surface reused for every data block */
.rp-panel { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }

/* big-number strip */
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -8px; }
.rp-stat { position: relative; padding: clamp(22px, 2.6vw, 32px) clamp(20px, 2.4vw, 30px); }
.rp-stat + .rp-stat::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.rp-stat b { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(34px, 3.8vw, 56px); line-height: 1; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-stat span { display: block; margin-top: 10px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.rp-stat small { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); line-height: 1.5; }
.rp-stats.compact { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.rp-stats.compact .rp-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.rp-stats.compact .rp-stat:nth-child(3)::before { display: none; }

/* in brief: numbered findings, an abstract */
.rp-brief { align-items: start; }
.rp-findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rp-findings li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rp-fn { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: .08em; color: #b7aaff; padding-top: 4px; }
.rp-findings b { display: block; font-family: "Space Grotesk", sans-serif; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.3; letter-spacing: -.01em; }
.rp-findings p { margin-top: 8px; color: var(--mut); font-size: 15px; line-height: 1.65; max-width: 62ch; }

/* shared */
.rp-lead { color: #cbbcff; font-weight: 600; }
.rp-findings b .rp-lead { font-weight: inherit; }
.rp-fine { margin-top: 18px; color: var(--faint); font-size: 12.5px; line-height: 1.6; max-width: 40ch; }
.rp-lt { display: inline-grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #0a0a0c; font-size: 13px; }
.rp-defs { justify-content: flex-start; gap: 6px 28px; }
.rp-defs b { color: var(--ink); margin-right: 6px; }
.rp-sechead { align-items: end; margin-bottom: clamp(26px, 3vw, 40px); }
.rp-sub-wide { max-width: 60ch !important; }
.rp-sub-wide strong { color: var(--ink); font-weight: 600; }
.rp-sechead .avi-ghost { margin-top: 18px; }

/* 02 · two layers — two strata, the upper one brighter, joined by a thread */
.rp-layers-band { position: relative; overflow: hidden; }
.rp-layers-band::before { content: ""; position: absolute; left: 50%; top: 30%; width: 70vw; height: 70%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(139,124,255,.16), transparent 70%); filter: blur(30px); pointer-events: none; }
.rp-layers { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: stretch; }
.rp-layer { position: relative; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: clamp(30px, 4vw, 56px) clamp(24px, 3vw, 44px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); overflow: hidden; }
.rp-layer-seen { border-color: rgba(183,170,255,.35); box-shadow: 0 30px 90px rgba(139,124,255,.14), inset 0 1px 0 rgba(255,255,255,.12); }
.rp-layer-seen::after { content: ""; position: absolute; inset: auto -20% -50%; height: 80%; background: radial-gradient(50% 50% at 50% 50%, rgba(139,124,255,.32), transparent 70%); filter: blur(18px); pointer-events: none; }
.rp-layer-source { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.005)); }
.rp-layer > * { position: relative; z-index: 1; }
.rp-layer-k { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #b7aaff; }
.rp-layer-source .rp-layer-k { color: var(--mut); }
.rp-big { margin-top: 22px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(76px, 9vw, 136px); line-height: .92; letter-spacing: -.05em; background: linear-gradient(180deg, #efeaff, #a99cf5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-big.dim { background: linear-gradient(180deg, #ffffff, #8f8f98); -webkit-background-clip: text; background-clip: text; }
.rp-layer-l { margin-top: 16px; color: var(--mut); font-size: 15px; }
.rp-layer-l b { color: var(--ink); font-weight: 600; }
.rp-layer-n { margin-top: 6px; color: var(--faint); font-size: 12.5px; letter-spacing: .02em; }
.rp-layers-thread { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center; gap: 10px; padding: 12px 0; }
.rp-layers-thread i { width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(183,170,255,.7), transparent); }
.rp-layers-thread em { font-style: normal; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .06em; color: #cbbcff; border: 1px solid rgba(183,170,255,.4); border-radius: 99px; padding: 8px 14px; background: rgba(10,9,16,.9); white-space: nowrap; }
.rp-layers figcaption { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; color: var(--faint); font-size: 13px; }
.rp-two-brand { display: inline-flex; align-items: center; gap: 9px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.rp-two-brand .avi-logo { width: 26px; height: 26px; border-radius: 7px; padding: 4px; }

/* 03 · evidence — a log, not a gallery */
.rp-track { display: flex; align-items: flex-start; gap: 0; margin-top: 22px; }
.rp-track span { position: relative; flex: 1; padding: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--mut); }
.rp-track span::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.12); }
.rp-track span.on::before { background: linear-gradient(90deg, #b7aaff, rgba(183,170,255,.25)); }
.rp-track span i { position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.rp-track span.on i { background: #b7aaff; box-shadow: 0 0 10px #8b7cff; }
.rp-track span.on { color: var(--ink); }
.rp-track small { display: block; margin-top: 3px; font-weight: 500; font-size: 12px; color: var(--faint); }
.rp-evgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rp-ev { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); overflow: hidden; }
.rp-ev header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.rp-ev .avi-ehead { font-size: 14px; }
.rp-ev .avi-ehead .tile { width: 26px; height: 26px; }
.rp-ev-when { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .04em; color: var(--faint); white-space: nowrap; }
.rp-ev-q, .rp-ev-a { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px 20px 0; line-height: 1.55; }
.rp-ev-q { color: var(--mut); font-size: 13.5px; }
.rp-ev-a { color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 500; flex: 1; }
.rp-ev-q span, .rp-ev-a span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: #b7aaff; padding-top: 4px; }
.rp-ev-a span { color: var(--faint); }
.rp-ev-meta { display: grid; gap: 12px; margin: 18px 20px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.rp-ev-meta dt { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.rp-ev-meta dd { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mut); }
.rp-ev-meta dd > span:not(.avi-chip) { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; color: var(--ink); }
.rp-ev-meta dd b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: rgba(183,170,255,.15); color: #cbbcff; font-family: "Space Grotesk", sans-serif; font-size: 11px; }
.rp-ev-meta em { color: var(--faint); }
.avi-chip.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; }
.rp-evall { margin-top: 26px; }
.rp-evall summary { list-style: none; width: max-content; margin-top: 0; }
.rp-evall summary::-webkit-details-marker { display: none; }
.rp-evtable { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,.22); overflow: hidden; }
.rp-evrow { display: grid; grid-template-columns: minmax(200px, 1.6fr) 130px minmax(180px, 1.2fr) minmax(180px, 1.2fr); gap: 14px; align-items: center; padding: 14px clamp(16px, 2vw, 24px); border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; color: var(--mut); }
.rp-evrow:last-child { border-bottom: 0; }
.rp-evhead { color: var(--faint); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.rp-evq { color: var(--ink); line-height: 1.45; }
.rp-eve { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.rp-eve .tile { width: 22px; height: 22px; box-shadow: none; flex: none; }
.rp-evo b { color: #cbbcff; font-family: "Space Grotesk", sans-serif; }
.rp-evh { display: flex; flex-wrap: wrap; gap: 5px; }
.rp-evrow em { color: var(--faint); }

/* 04 · buyer-intent tiles: 3 × 2 */
.rp-intents-sect { align-items: center; }
.rp-intents { grid-template-columns: repeat(3, 1fr); margin-top: 0; gap: 12px; }
.rp-intents .avi-mover { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); }
.rp-intents .d { background: linear-gradient(180deg, #e9e3ff, #a99cf5); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 05 · vertical timeline */
.rp-tl { list-style: none; margin: 0; padding: clamp(10px, 1.4vw, 16px) clamp(22px, 2.6vw, 32px); }
.rp-tl li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 18px 0; }
.rp-tl li + li { border-top: 1px solid rgba(255,255,255,.06); }
.rp-tl li::before { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(183,170,255,.45), rgba(183,170,255,.1)); }
.rp-tl li:first-child::before { top: 50%; }
.rp-tl li:last-child::before { bottom: 50%; }
.rp-tn { position: relative; align-self: center; width: 52px; text-align: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .1em; color: #b7aaff; background: #0b0a10; padding: 6px 0; }
.rp-tl b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 16px; }
.rp-tl p { margin-top: 5px; color: var(--mut); font-size: 13.5px; line-height: 1.6; }

/* sphere divider */
.rp-orbdiv { display: grid; justify-items: center; gap: 4px; padding: clamp(40px, 6vw, 84px) 0; text-align: center; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: clamp(18px, 2vw, 24px); color: var(--mut); }
.rp-orbdiv .avi-orb { width: min(300px, 55vw); }
.rp-orbdiv .avi-orb::after { display: none; }

/* 07 · data & citation */
.rp-closing-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 16px; }
.rp-closing-grid .avi-cite { margin-top: 0; }
.rp-data { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.rp-data h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(20px, 2.2vw, 27px); }
.rp-data .sub { margin-top: 12px; color: var(--mut); font-size: 14.5px; line-height: 1.65; }
.rp-data .avi-cite-actions { margin-top: auto; padding-top: 22px; }

/* from the report to your brand */
.rp-cta { padding: clamp(36px, 5vw, 64px) clamp(28px, 4.5vw, 56px); }
.rp-cta-copy { position: relative; max-width: 620px; }
.rp-cta-eb { display: block; margin-bottom: 16px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #b7aaff; font-weight: 600; }
.rp-cta h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.rp-cta .sub { max-width: 54ch; }
.rp-cta .audit-form { margin-top: 26px; max-width: 520px; }
.rp-cta .rp-fine { margin-top: 14px; }
.rp-cta .avi-btag { align-self: flex-end; }
.rp-cta .avi-banner-orb { bottom: -42%; right: 32%; }

/* colophon */
.rp-colophon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 8px 0 clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); padding-top: 22px; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.rp-colophon b { display: block; margin-bottom: 4px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }

@media (max-width: 1020px) {
  .rp-evgrid, .rp-closing-grid { grid-template-columns: 1fr; }
  .rp-colophon { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .rp-masthead span:nth-child(2) { display: none; }
  .rp-stats { grid-template-columns: repeat(2, 1fr); }
  .rp-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rp-stat:nth-child(3)::before { display: none; }
  .rp-layers { grid-template-columns: 1fr; }
  .rp-layers-thread { grid-template-rows: none; grid-template-columns: 1fr auto 1fr; padding: 0 12px; height: 72px; }
  .rp-layers-thread i { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(183,170,255,.7), transparent); }
  .rp-evrow { grid-template-columns: 1fr; gap: 8px; }
  .rp-evhead { display: none; }
}
@media (max-width: 760px) { .rp .avi-val small { white-space: nowrap; } }
@media (max-width: 560px) { .rp-intents { grid-template-columns: repeat(2, 1fr); } .rp-colophon { grid-template-columns: 1fr; } }
