/* =========================================================
   Report Builder — /report/{slug}
   Loaded after style.css; reuses :root tokens.
   ========================================================= */

.rb { max-width: 1040px; }

/* On the builder, the site header is NOT sticky — only the stepper sticks. */
.nav { position: static; }

/* ---------- Hero ---------- */
.rb-hero { text-align: center; padding-top: clamp(1rem, 3vw, 2rem); }
.rb-hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(58,54,224,.08); color: var(--indigo);
  font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: .5rem 1rem; border-radius: 999px;
}
.rb-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 0 rgba(58,54,224,.5); animation: rbPulse 1.6s var(--ease) infinite; }
@keyframes rbPulse { 70% { box-shadow: 0 0 0 8px rgba(58,54,224,0);} 100% { box-shadow: 0 0 0 0 rgba(58,54,224,0);} }

.rb-hero__title {
  font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em;
  font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.05; margin: 1.1rem 0 .9rem;
}
.rb-hero__sub { max-width: 720px; margin: 0 auto; color: var(--ink-soft); font-size: clamp(1rem,2vw,1.18rem); line-height: 1.55; }
.rb-hero__sub b { color: var(--ink); font-weight: 500; }

.rb-intel {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.1rem; box-shadow: var(--shadow-sm); font-size: .9rem; color: var(--ink-soft);
}
.rb-intel__spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(58,54,224,.25); border-top-color: var(--indigo); animation: rbSpin .9s linear infinite; }
@keyframes rbSpin { to { transform: rotate(360deg); } }
.rb-intel__text { transition: opacity .3s var(--ease); }

/* ---------- What's inside (stats) ---------- */
.rb-stats {
  margin: clamp(2rem,4vw,3rem) auto 0; display: grid; gap: 1px;
  grid-template-columns: repeat(7, 1fr); background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.rb-stat { background: #fff; padding: 1.3rem .6rem; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.rb-stat__n { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.1rem,2.4vw,1.7rem); color: var(--ink); letter-spacing: -.02em; }
.rb-stat__l { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rb-stat--export .rb-stat__n { color: var(--indigo); font-size: clamp(.95rem,2vw,1.2rem); }

/* ---------- Stepper ---------- */
.rb-steps {
  list-style: none; display: flex; padding: .7rem .6rem .55rem; margin: clamp(2.5rem,5vw,4rem) 0 1.5rem;
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.rb-steps__i {
  flex: 1; position: relative; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding-top: .35rem;
}
/* connector from the previous node */
.rb-steps__i::before {
  content: ""; position: absolute; top: calc(.35rem + 18px); right: 50%; width: 100%; height: 3px;
  background: #e6e5ef; z-index: 1; transform: translateY(-50%); border-radius: 3px;
  transition: background .4s var(--ease);
}
.rb-steps__i:first-child::before { display: none; }

.rb-steps__node {
  position: relative; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: #edecf5; color: var(--ink-soft);
  font-size: .9rem; font-weight: 500; border: 2px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.rb-steps__tick { display: none; }
.rb-steps__lbl { font-size: .9rem; color: var(--muted); transition: color .2s var(--ease); white-space: nowrap; }

/* completed */
.rb-steps__i.is-done .rb-steps__node { background: #1faa6b; color: #fff; }
.rb-steps__i.is-done .rb-steps__num { display: none; }
.rb-steps__i.is-done .rb-steps__tick { display: block; animation: rbTick .35s var(--ease); }
.rb-steps__i.is-done .rb-steps__lbl { color: var(--ink); }
.rb-steps__i.is-done::before { background: #1faa6b; }

/* active */
.rb-steps__i.is-active .rb-steps__node { background: var(--indigo); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 5px rgba(58,54,224,.16); }
.rb-steps__i.is-active .rb-steps__lbl { color: var(--ink); font-weight: 500; }
.rb-steps__i.is-active::before { background: linear-gradient(90deg, #1faa6b, var(--indigo)); }

@keyframes rbTick { from { transform: scale(0) rotate(-12deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Cards ---------- */
.rb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem,3vw,2rem); margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); scroll-margin-top: 130px; }
.rb-card--done { background: linear-gradient(180deg, #f3fbf7, #fff); border-color: #cdeede; }
.rb-card__head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.rb-card__no { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; font-weight: 500; }
.rb-card__ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #1faa6b; color: #fff; display: grid; place-items: center; }
.rb-card__step { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rb-card__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.2rem,2.6vw,1.55rem); letter-spacing: -.02em; }
.rb-card__hint { color: var(--ink-soft); font-size: .92rem; margin-top: .3rem; max-width: 60ch; }

.rb-allbtn { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.rb-chip { background: #eafaf2; color: #138a55; border-radius: 999px; padding: .4rem 1rem; font-size: .9rem; font-weight: 500; }

/* ---------- Custom checkbox ---------- */
.rb-chk { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.rb-chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.rb-chk__box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c7c9d6; background: #fff; transition: .15s var(--ease); flex: none; position: relative; }
.rb-chk input:checked + .rb-chk__box { background: var(--indigo); border-color: var(--indigo); }
.rb-chk input:checked + .rb-chk__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rb-chk input:focus-visible + .rb-chk__box { box-shadow: 0 0 0 3px rgba(58,54,224,.25); }

/* ---------- Chapters accordion ---------- */
.rb-chapters { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.rb-chap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.rb-chap:hover { border-color: #d6d4f5; box-shadow: var(--shadow-sm); }
.rb-chap__bar { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; }
.rb-chap__cb { } /* hidden input handled by .rb-chk */
.rb-chap__toggle { flex: 1; display: flex; align-items: center; gap: .8rem; background: none; border: none; cursor: pointer; text-align: left; padding: 0; font-family: inherit; }
.rb-chap__no { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); background: #f3f3f8; padding: .25rem .5rem; border-radius: 6px; white-space: nowrap; }
.rb-chap__title { font-size: 1.04rem; color: var(--ink); flex: 1; }
.rb-chap__count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.rb-chap__chev { color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.rb-chap.is-open .rb-chap__chev { transform: rotate(180deg); }

.rb-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: .22rem .55rem; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.rb-tag--fixed { background: #eef0ff; color: var(--indigo); }
.rb-tag--dyn { background: #fff1e9; color: #d2691b; }

.rb-chap__body { border-top: 1px dashed var(--line); padding: .4rem 1.1rem 1rem 3.4rem; background: #fcfcfe; }
.rb-secs { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.rb-secs li { break-inside: avoid; padding: .42rem 0; font-size: .9rem; color: var(--ink-soft); display: flex; gap: .55rem; }
.rb-secs__no { font-family: var(--font-mono); font-size: .76rem; color: var(--indigo); flex: none; min-width: 2.4em; }

/* dimmed when chapter unchecked */
.rb-chap.is-off { opacity: .5; }

/* ---------- Geography ---------- */
.rb-geo { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.rb-region { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.rb-region__head { gap: .7rem; }
.rb-region__name { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.rb-countries { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; padding-left: 1.9rem; }
.rb-pill { display: inline-flex; align-items: center; gap: .45rem; background: #f4f4f8; border: 1px solid #ededf3; border-radius: 999px; padding: .4rem .8rem .4rem .55rem; font-size: .85rem; color: #34354a; cursor: pointer; transition: .15s var(--ease); }
.rb-pill:hover { border-color: var(--indigo); }
.rb-pill input { accent-color: var(--indigo); width: 15px; height: 15px; }
.rb-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }
.rb-flag--globe { display: inline-grid; place-items: center; width: 18px; height: 18px; box-shadow: none; color: var(--muted); }
.rb-pill:has(input:checked) { background: #eef0ff; border-color: #c9caf6; }
.rb-pill--co { padding: .5rem 1rem .5rem .65rem; font-size: .9rem; }

/* Per-region add-country control */
.rb-region__add { display: flex; gap: .5rem; margin-top: .9rem; padding-left: 1.9rem; }
.rb-region__input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; font-size: .85rem; outline: none; transition: border-color .2s var(--ease); }
.rb-region__input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(58,54,224,.1); }
.rb-region__addbtn { border: 1px dashed #c7c9d6; background: #fff; color: var(--indigo); border-radius: 10px; padding: .5rem .85rem; font-size: .82rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: .15s var(--ease); }
.rb-region__addbtn:hover { border-color: var(--indigo); background: rgba(58,54,224,.05); }

.rb-addrow { display: flex; gap: .7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.rb-input { flex: 1 1 260px; border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; font-size: .95rem; outline: none; transition: border-color .2s var(--ease); }
.rb-input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(58,54,224,.12); }

/* single-country mode */
.rb-geo.is-single .rb-region__cb { display: none; }
.rb-geo.is-single .rb-pill { border-radius: 10px; }

/* ---------- Companies ---------- */
.rb-companies { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.rb-empty { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; max-width: 70ch; }
.rb-profile { margin-top: 1.8rem; background: linear-gradient(135deg, #f7f7ff, #fdfbf7); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; }
.rb-profile__head { font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.rb-profile__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: .6rem 1.5rem; }
.rb-profile__grid li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--ink-soft); }
.rb-profile__grid svg { color: #1faa6b; flex: none; }

/* ---------- Build CTA ---------- */
.rb-cta {
  margin-top: 1.8rem; border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: radial-gradient(120% 160% at 0% 0%, #2a27c4 0%, #3a36e0 45%, #6a4bff 100%); color: #fff;
  box-shadow: 0 24px 60px rgba(58,54,224,.32);
}
.rb-cta h2 { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.3rem,3vw,1.9rem); letter-spacing: -.02em; }
.rb-cta p { color: rgba(255,255,255,.85); margin-top: .4rem; font-size: .95rem; }
.rb-cta__btn { background: #fff; color: var(--indigo); padding: 1rem 1.8rem; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.rb-cta__btn:hover { background: #fff; color: var(--indigo-600); transform: translateY(-2px); }

/* ---------- Email modal ---------- */
.rb-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.rb-modal[hidden] { display: none; }
.rb-modal__backdrop { position: absolute; inset: 0; background: rgba(10,13,34,.55); backdrop-filter: blur(4px); animation: rbFade .25s var(--ease); }
.rb-modal__panel { position: relative; width: min(520px, 100%); background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.6rem); box-shadow: var(--shadow-lg); animation: rbPop .3s var(--ease); }
@keyframes rbFade { from { opacity: 0; } }
@keyframes rbPop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.rb-modal__x { position: absolute; right: 1.1rem; top: .9rem; background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.rb-modal__kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--indigo); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.rb-modal__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.3rem,3vw,1.7rem); letter-spacing: -.02em; margin: .8rem 0 .6rem; line-height: 1.15; }
.rb-modal__text { color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }
.rb-modal__form { margin-top: 1.4rem; }
.rb-field { display: block; }
.rb-field span { display: block; font-size: .82rem; color: var(--ink-soft); margin-bottom: .4rem; }
.rb-field input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .9rem 1rem; font-size: 1rem; outline: none; transition: border-color .2s var(--ease); }
.rb-field input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(58,54,224,.12); }
.rb-field--bad input, .rb-field input:invalid:not(:placeholder-shown) { }
.rb-field__err { color: #d6334b; font-size: .85rem; margin-top: .5rem; }
.rb-modal__submit { width: 100%; justify-content: center; margin-top: 1.1rem; padding: 1rem; font-size: 1.02rem; }
.rb-modal__fine { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .9rem; line-height: 1.4; }
.rb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Social login buttons ---------- */
.rb-social { display: grid; gap: .7rem; margin-top: 1.4rem; }
.rb-social__btn {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem;
  font-weight: 500; color: var(--ink); background: #fff; transition: .18s var(--ease);
}
.rb-social__btn:hover { border-color: #c7c9d6; background: #fafafe; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.rb-or { display: flex; align-items: center; gap: 1rem; margin: 1.3rem 0 .4rem; color: var(--muted); font-size: .82rem; }
.rb-or::before, .rb-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- OTP screen (bg-2) ---------- */
.rb-otp {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 1.2rem;
  background: #ffffff url("../../images/bg-2.svg") center/cover no-repeat;
}
.rb-otp[hidden] { display: none; }
.rb-otp__card {
  width: min(520px, 100%); background: rgba(255,255,255,.97); border-radius: var(--radius-lg);
  padding: clamp(1.8rem,5vw,3rem); text-align: center; box-shadow: var(--shadow-lg);
  animation: rbPop .35s var(--ease);
}
.rb-otp__ready { display: inline-flex; align-items: center; gap: .5rem; color: #138a55; font-size: .82rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.rb-otp__check { width: 22px; height: 22px; border-radius: 50%; background: #1faa6b; color: #fff; display: grid; place-items: center; }
.rb-otp__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.5rem,4vw,2.1rem); letter-spacing: -.02em; margin: .8rem 0 .5rem; line-height: 1.12; }
.rb-otp__sub { color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }
.rb-otp__sub b { color: var(--ink); }
.rb-otp__boxes { display: flex; justify-content: center; gap: .6rem; margin: 1.8rem 0 .6rem; }
.rb-otp__box {
  width: 52px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 500;
  border: 1.5px solid var(--line); border-radius: 12px; outline: none; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.rb-otp__box:focus { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(58,54,224,.14); }
.rb-otp__err { color: #d6334b; font-size: .88rem; margin: .3rem 0; }
.rb-otp__verify { width: 100%; justify-content: center; padding: 1rem; font-size: 1.02rem; margin-top: 1rem; }
.rb-otp__foot { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.2rem; }
.rb-otp__link { background: none; border: none; cursor: pointer; color: var(--indigo); font-size: .9rem; font-family: inherit; }
.rb-otp__link:disabled { color: var(--muted); cursor: default; }
.rb-otp__dev { margin-top: 1.2rem; font-size: .8rem; color: var(--muted); background: #f3f3f8; border-radius: 8px; padding: .5rem; }

/* ---------- Workspace (report-view) ---------- */
.rv { max-width: none; margin: 0; padding: clamp(1.5rem,3vw,2.5rem) clamp(1rem,4vw,3rem) 5rem; position: relative; }
.rvgen { max-width: 900px; margin-left: auto; margin-right: auto; }
.rv__hi { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-size: .9rem; }
.rv__hi b { color: var(--ink); }
.rv__title { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; font-size: clamp(2rem,5vw,3rem); margin: 1rem 0 .6rem; line-height: 1.05; }
.rv__sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }
.rv__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin: 2.2rem 0; }
.rv__stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; box-shadow: var(--shadow-sm); }
.rv__n { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.7rem; color: var(--indigo); }
.rv__l { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rv__panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.rv__panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; }
.rv__panel h2 { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; margin-bottom: 1rem; }
.rv__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.rv__tag { background: #eef0ff; color: var(--indigo); border-radius: 999px; padding: .35rem .8rem; font-size: .82rem; }
.rv__muted { color: var(--muted); font-size: .9rem; }
.rv__note { margin-top: 1.6rem; background: linear-gradient(135deg,#f7f7ff,#fdfbf7); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.6rem; color: var(--ink-soft); line-height: 1.6; }
.rv__note b { color: var(--ink); }
.rv__actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- Generation experience ---------- */
.rvgen {
  margin-top: 2rem; text-align: center;
  background: radial-gradient(120% 140% at 50% -10%, #1a1f6b 0%, #0c1138 60%, #080a26 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem,6vw,4.5rem) 1.5rem;
  position: relative; overflow: hidden;
}
.rvgen[hidden] { display: none; }
.rvgen::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .4; pointer-events: none;
}
.rvgen > * { position: relative; z-index: 1; }
.rvgen__brain { display: inline-flex; gap: .55rem; margin-bottom: 1.6rem; }
.rvgen__brain span { width: 14px; height: 14px; border-radius: 50%; background: #8b5cf6; animation: rbBrain 1s var(--ease) infinite; }
.rvgen__brain span:nth-child(2){ animation-delay:.12s; background:#6a4bff; }
.rvgen__brain span:nth-child(3){ animation-delay:.24s; background:#b794ff; }
.rvgen__brain span:nth-child(4){ animation-delay:.36s; background:#4f46ff; }
.rvgen__head { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem,3.4vw,2.2rem); letter-spacing:-.02em; }
.rvgen__line { color: #c9cbf2; margin-top: .9rem; min-height: 1.5em; transition: opacity .3s var(--ease); font-size: 1.02rem; }
.rvgen__bar { margin: 1.8rem auto 0; max-width: 560px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.rvgen__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg,#6a4bff,#b794ff); transition: width .5s var(--ease); }
.rvgen__meta { margin-top: .9rem; color: #aeb1e0; font-size: .9rem; }
.rvgen__facts { list-style: none; padding: 0; margin: 2.2rem auto 0; max-width: 640px; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.rvgen__facts li { font-size: .82rem; color: #b9bced; line-height: 1.4; }
.rvgen__facts b { display: block; color: #fff; font-size: 1.05rem; font-weight: 500; margin-bottom: .2rem; }

/* Market-data chips shown on the build / reused-loader screen */
.rvgen__stats { list-style: none; padding: 0; margin: 1.6rem auto 0; max-width: 560px; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.rvgen__stats li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: .55rem .95rem; min-width: 118px; }
.rvgen__stats span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #aeb1e0; margin-bottom: .15rem; }
.rvgen__stats b { color: #fff; font-weight: 500; font-size: 1.02rem; }

/* ---------- Ready state ---------- */
.rvready[hidden] { display: none; }
.rvready__badge { display: inline-flex; align-items: center; gap: .5rem; color: #138a55; font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-top: 2rem; }
.rvready__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.5rem,3.6vw,2.3rem); letter-spacing:-.02em; margin: .8rem 0 .5rem; }
.rvready__sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 64ch; }

@media (max-width: 600px) {
  .rvgen__facts { grid-template-columns: 1fr; }
}

/* =========================================================
   REPORT APP (Study)
   ========================================================= */
.rvapp[hidden] { display: none; }
.rvapp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.rvapp__eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--indigo); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.rvapp__market { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; font-size: clamp(1.7rem,4.4vw,2.8rem); line-height: 1.05; margin-top: .5rem; }
.rvapp__user { font-size: .85rem; color: var(--muted); }

/* Tabs */
.rvtabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.rvtab { background: none; border: none; cursor: pointer; font-family: inherit; font-size: .98rem; color: var(--ink-soft); padding: .8rem 1.1rem; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; transition: color .2s var(--ease); }
.rvtab:hover { color: var(--ink); }
.rvtab.is-active { color: var(--indigo); border-bottom-color: var(--indigo); font-weight: 500; }
.rvtab svg { color: var(--muted); }

.rvpanel[hidden] { display: none; }

/* Unlock banner */
.rvunlock { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(120deg, #eef0ff, #f7f1ff); border: 1px solid #dcdcff; border-radius: 16px; padding: 1rem 1.4rem; margin-bottom: 1.4rem; }
.rvunlock__txt { color: var(--ink-soft); font-size: .95rem; }
.rvunlock__txt b { color: var(--ink); }

/* Unlock CTA (bottom of report) */
.rvbuy { margin-top: 2.4rem; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: radial-gradient(130% 150% at 0% 0%, #2a27c4 0%, #3a36e0 45%, #6a4bff 100%); color: #fff;
  box-shadow: 0 30px 70px rgba(58,54,224,.35); }
.rvbuy::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 24px 24px; opacity: .5; pointer-events: none; }
.rvbuy__in { position: relative; z-index: 1; padding: clamp(2rem,5vw,3.4rem); }
.rvbuy__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #d7d8ff; }
.rvbuy__eyebrow .rb-pulse { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
.rvbuy__title { font-family: var(--font-head); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.6rem,4vw,2.6rem); line-height: 1.08; margin: .9rem 0 .6rem; }
.rvbuy__sub { color: rgba(255,255,255,.85); max-width: 640px; line-height: 1.55; }
.rvbuy__list { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem 1.6rem; max-width: 720px; }
.rvbuy__list li { position: relative; padding-left: 1.7rem; color: #f1f1ff; font-size: .96rem; }
.rvbuy__list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.rvbuy__cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .5rem; }
.rvbuy__btn { background: #fff; color: var(--indigo); padding: 1.05rem 2.2rem; font-size: 1.08rem; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.rvbuy__btn:hover { background: #fff; color: var(--indigo-600); transform: translateY(-2px); box-shadow: 0 20px 44px rgba(0,0,0,.28); }
.rvbuy__trust { color: rgba(255,255,255,.7); font-size: .82rem; }
@media (max-width: 560px) { .rvbuy__list { grid-template-columns: 1fr; } }

/* Study layout */
.rvstudy { display: grid; grid-template-columns: 320px 1fr; gap: 1.6rem; align-items: start; }
.rvtoc { position: sticky; top: 80px; max-height: calc(100vh - 110px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: .6rem; }
.rvchap { border-radius: 12px; overflow: hidden; }
.rvchap + .rvchap { margin-top: .15rem; }
.rvchap__head { width: 100%; display: flex; align-items: center; gap: .6rem; background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; padding: .75rem .7rem; border-radius: 10px; transition: background .15s var(--ease); }
.rvchap__head:hover { background: #f5f5fb; }
.rvchap__no { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); background: #f1f1f8; padding: .2rem .45rem; border-radius: 6px; white-space: nowrap; }
.rvchap__title { flex: 1; font-size: .95rem; color: var(--ink); }
.rvchap__chev { color: var(--muted); transition: transform .25s var(--ease); flex: none; }
.rvchap.is-open .rvchap__chev { transform: rotate(180deg); }
.rvchap.is-locked .rvchap__title { color: var(--ink-soft); }
.rvchap.is-locked .rvchap__head svg { color: var(--indigo); }

.rvchap__secs { list-style: none; margin: 0 0 .3rem; padding: 0 0 0 .3rem; }
.rvchap__secs[hidden] { display: none; }
.rvsec { width: 100%; display: flex; align-items: center; gap: .5rem; background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; padding: .5rem .6rem; border-radius: 8px; color: var(--ink-soft); transition: background .15s var(--ease), color .15s var(--ease); }
.rvsec:hover { background: #f5f5fb; color: var(--ink); }
.rvsec.is-current { background: rgba(58,54,224,.08); color: var(--indigo); }
.rvsec__no { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); flex: none; min-width: 2.4em; }
.rvsec__t { flex: 1; font-size: .88rem; line-height: 1.3; }
.rvsec__lock { color: var(--indigo); display: inline-flex; flex: none; }
.rvsec.is-locked { color: var(--muted); }

/* Content panel */
.rvcontent { min-height: 60vh; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: clamp(1.5rem,4vw,2.8rem); box-shadow: var(--shadow-sm); }
.rvcontent__empty { color: var(--muted); display: grid; place-items: center; min-height: 40vh; text-align: center; }
.rvdoc { max-width: 100%; }    /* fill the content panel — no wasted right-side whitespace */
.rvdoc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.rvdoc__crumb { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .02em; }
.rvdoc__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.5rem,3vw,2.2rem); letter-spacing: -.02em; margin: .4rem 0 0; line-height: 1.15; }
.rvdoc__ask {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  background: rgba(58,54,224,.08); color: var(--indigo); border: 1px solid rgba(58,54,224,.2);
  border-radius: 999px; padding: .5rem .9rem; font-family: inherit; font-size: .85rem; font-weight: 500;
  transition: background .15s var(--ease), transform .15s var(--ease); white-space: nowrap;
}
.rvdoc__ask:hover { background: var(--indigo); color: #fff; transform: translateY(-1px); }
@media (max-width: 560px) { .rvdoc__top { flex-direction: column; } .rvdoc__ask { align-self: flex-start; } }

/* ---------- Rich RB / generated HTML ---------- */
.rvdoc__body { color: #333; line-height: 1.8; font-size: 1.05rem; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.rvdoc__body h1, .rvdoc__body h2, .rvdoc__body h3, .rvdoc__body h4, .rvdoc__body h5, .rvdoc__body li, .rvdoc__body th, .rvdoc__body td { text-align: left; hyphens: manual; }
.rvdoc__body > *:first-child { margin-top: 0; }
.rvdoc__body p { margin: 0 0 1.15rem; }
.rvdoc__body strong, .rvdoc__body b { font-weight: 600; color: var(--ink); }
.rvdoc__body em, .rvdoc__body i { font-style: italic; }
.rvdoc__body a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.rvdoc__body a:hover { color: var(--indigo-600); }

.rvdoc__body h1, .rvdoc__body h2, .rvdoc__body h3, .rvdoc__body h4, .rvdoc__body h5 {
  font-family: var(--font-head); font-weight: 500; color: var(--ink); letter-spacing: -.01em; line-height: 1.25;
  margin: 2rem 0 .8rem;
}
.rvdoc__body h2 { font-size: 1.5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.rvdoc__body h3 { font-size: 1.25rem; }
.rvdoc__body h4 { font-size: 1.08rem; }
.rvdoc__body h5 { font-size: .98rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

.rvdoc__body ul, .rvdoc__body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.rvdoc__body li { margin: 0 0 .5rem; padding-left: .2rem; }
.rvdoc__body ul li::marker { color: var(--indigo); }
.rvdoc__body ol li::marker { color: var(--indigo); font-weight: 600; }

.rvdoc__body blockquote {
  margin: 1.4rem 0; padding: .9rem 1.3rem; border-left: 3px solid var(--indigo);
  background: #f7f7ff; border-radius: 0 12px 12px 0; color: var(--ink-soft); font-style: italic;
}
.rvdoc__body hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.rvdoc__body code { font-family: var(--font-mono); font-size: .9em; background: #f1f1f8; padding: .12em .4em; border-radius: 5px; }

/* Images & auto-generated infographic assets */
.rvdoc__body img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.rvdoc__body figure { margin: 1.6rem 0; }
.rvdoc__body figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.rvdoc__body .rvfig__art { background: #fafafe; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); }
.rvdoc__body .rvfig__cap { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.rvdoc__body .rb-auto-asset {
  margin: 1.8rem auto; padding: .9rem; background: #fafafe; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-sm); text-align: center;
}
.rvdoc__body .rb-auto-asset img { margin: 0 auto; border-radius: 10px; }
.rvdoc__body .rb-auto-asset figcaption,
.rvdoc__body .rb-auto-asset .caption { margin-top: .7rem; }

/* Tables */
.rvdoc__body table { border-collapse: collapse; width: 100%; margin: 1.6rem 0; font-size: .92rem; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.rvdoc__body thead th, .rvdoc__body tr:first-child th { background: var(--ink); color: #fff; font-weight: 500; }
.rvdoc__body th, .rvdoc__body td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.rvdoc__body tbody tr:nth-child(even) { background: #fafafe; }
.rvdoc__body tbody tr:hover { background: #f4f4fb; }

.rb-prep { color: var(--ink-soft); font-style: italic; }

@media (max-width: 600px) {
  .rvdoc__body { font-size: 1rem; }
  .rvdoc__body table { display: block; overflow-x: auto; white-space: nowrap; box-shadow: none; }
}

/* Loading (on-demand section) */
.rvload { display: grid; place-items: center; min-height: 44vh; text-align: center; gap: 1.2rem; }
.rvload__spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(58,54,224,.2); border-top-color: var(--indigo); animation: rbSpin .9s linear infinite; }
.rvload__line { color: var(--ink-soft); transition: opacity .25s var(--ease); }

/* Paywall in content */
.rvlockbox { text-align: center; max-width: 480px; margin: 0 auto; padding: clamp(1.5rem,5vw,3rem) 0; }
.rvlockbox__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; background: rgba(58,54,224,.1); color: var(--indigo); }
.rvlockbox h2 { font-family: var(--font-head); font-weight: 500; font-size: 1.5rem; margin-bottom: .6rem; }
.rvlockbox p { color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.4rem; }
.rvlockbox__fine { font-size: .8rem; color: var(--muted); margin-top: 1rem; }

/* Premium tab panels */
.rvpremium { text-align: center; max-width: 520px; margin: 0 auto; padding: clamp(2rem,6vw,4rem) 1rem; }
.rvpremium__ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; background: rgba(58,54,224,.1); color: var(--indigo); }
.rvpremium h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.5rem; margin-bottom: .6rem; }
.rvpremium p { color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.4rem; }

/* Add-ons */
.rvaddons { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.rvaddon { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1.2rem; cursor: pointer; background: #fff; font-size: .92rem; color: var(--ink); transition: .15s var(--ease); }
.rvaddon:hover { border-color: var(--indigo); }
.rvaddon.is-locked { color: var(--muted); background: #fafafe; }
.rvaddon.is-locked svg { color: var(--indigo); }

/* Toast */
.rvtoast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #0b0b16; color: #fff; padding: .8rem 1.3rem; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: .3s var(--ease); z-index: 400; }
.rvtoast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 820px) {
  .rvstudy { grid-template-columns: 1fr; }
  .rvtoc { position: static; max-height: none; }
}

/* =========================================================
   RESEARCH DESK (right drawer)
   ========================================================= */
.rvdesk__fab {
  position: fixed; right: 0; top: 110px; z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--indigo); color: #fff; border: none; cursor: pointer;
  padding: .8rem 1rem; border-radius: 12px 0 0 12px; font-family: inherit; font-size: .9rem;
  box-shadow: -6px 8px 24px rgba(58,54,224,.3); writing-mode: initial;
}
.rvdesk__fab:hover { background: var(--indigo-600); }

.rvdesk {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(420px, 92vw); z-index: 120;
  background: #fff; box-shadow: -20px 0 60px rgba(16,18,60,.18);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease);
}
.rvdesk.is-open { transform: translateX(0); }
.rvdesk__top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.rvdesk__top strong { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; }
.rvdesk__close { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.rvdesk__tabs { display: flex; gap: .3rem; padding: .6rem 1.1rem 0; border-bottom: 1px solid var(--line); }
.rvdesk__tab { background: none; border: none; cursor: pointer; font-family: inherit; font-size: .9rem; color: var(--ink-soft); padding: .6rem .4rem; border-bottom: 2px solid transparent; }
.rvdesk__tab.is-active { color: var(--indigo); border-bottom-color: var(--indigo); font-weight: 500; }
.rvdesk__panel { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 1.1rem 1.3rem; overflow: hidden; }
.rvdesk__panel[hidden] { display: none; }

/* Chat */
.rvchat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; padding-right: .3rem; }
.rvchat__sys { background: #f5f5fb; color: var(--ink-soft); font-size: .85rem; border-radius: 12px; padding: .8rem 1rem; line-height: 1.4; }
.rvmsg { display: flex; }
.rvmsg--out { justify-content: flex-end; }
.rvmsg__b { display: inline-block; max-width: 82%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.4; }
.rvmsg--out .rvmsg__b { background: var(--indigo); color: #fff; border-bottom-right-radius: 4px; }
.rvmsg--in .rvmsg__b { background: #f1f1f8; color: var(--ink); border-bottom-left-radius: 4px; }
.rvchat__form { display: flex; gap: .5rem; margin-top: .9rem; }
.rvchat__form input { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem; outline: none; font-size: .92rem; }
.rvchat__form input:focus { border-color: var(--indigo); }
.rvchat__form .btn { padding: .7rem .9rem; }

/* Team */
.rvteam__intro { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; margin-bottom: 1rem; }
.rvteam__form { display: flex; gap: .5rem; }
.rvteam__form input { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem; outline: none; font-size: .92rem; }
.rvteam__form input:focus { border-color: var(--indigo); }
.rvteam__err { color: #d6334b; font-size: .82rem; margin-top: .5rem; }
.rvteam__list { margin-top: 1.4rem; overflow-y: auto; }
.rvteam__owner { font-size: .9rem; color: var(--ink-soft); padding: .6rem 0; border-bottom: 1px solid var(--line); }
.rvteam__member { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.rvteam__badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--indigo); background: #eef0ff; border-radius: 999px; padding: .2rem .6rem; }

@media (max-width: 720px) {
  .rv__grid { grid-template-columns: repeat(2,1fr); }
  .rv__panels { grid-template-columns: 1fr; }
  .rb-otp__box { width: 44px; height: 52px; font-size: 1.3rem; }
}

/* ---------- Building overlay (teaser) ---------- */
.rb-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(8,10,30,.92); }
.rb-overlay[hidden] { display: none; }
.rb-overlay__core { text-align: center; color: #fff; width: min(440px, 90%); }
.rb-overlay__line { margin-top: 1.8rem; font-size: 1.05rem; min-height: 1.5em; transition: opacity .3s var(--ease); }
.rb-overlay__bar { margin-top: 1.4rem; height: 5px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.rb-overlay__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #6a4bff, #b794ff); transition: width .5s var(--ease); }
.rb-brain { display: inline-flex; gap: .5rem; }
.rb-brain span { width: 14px; height: 14px; border-radius: 50%; background: #8b5cf6; animation: rbBrain 1s var(--ease) infinite; }
.rb-brain span:nth-child(2) { animation-delay: .15s; background: #6a4bff; }
.rb-brain span:nth-child(3) { animation-delay: .3s; background: #b794ff; }
@keyframes rbBrain { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(-12px); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .rb-stats { grid-template-columns: repeat(4, 1fr); }
  .rb-geo { grid-template-columns: 1fr; }
  .rb-secs { columns: 1; }
  .rb-profile__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rb-stats { grid-template-columns: repeat(2, 1fr); }
  .rb-steps__node { width: 30px; height: 30px; font-size: .82rem; }
  .rb-steps__tick { width: 15px; height: 15px; }
  .rb-steps__i::before { top: calc(.35rem + 15px); }
  .rb-steps__lbl { font-size: .76rem; }
  .rb-chap__count { display: none; }
  .rb-cta { flex-direction: column; align-items: flex-start; }
  .rb-cta__btn { width: 100%; justify-content: center; }
  .rb-allbtn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-intel__spin, .rb-pulse, .rb-brain span { animation: none; }
}
