/**
 * FLiiP — Competitive Assessment page-specific styles
 * Scoped overrides and new components. Loaded after fliip.css.
 */

/* ─── Gift banner (top strip) ─── */
.gift-banner {
  background: linear-gradient(135deg, #0B83FA 0%, #1568BA 100%);
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 20;
}
.gift-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  line-height: 1.4;
}
.gift-banner-icon {
  font-size: 1.05rem;
  line-height: 1;
}
.gift-banner-text strong {
  font-weight: 700;
}
@media (max-width: 640px) {
  .gift-banner { font-size: 0.82rem; }
  .gift-banner-inner { padding: 0.6rem 0.85rem; }
}

/* ─── Hero bullets (under the subhead) ─── */
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}
.hero-bullets li {
  position: relative;
  padding-left: 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.5;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #1FBEFC 0%, #0B83FA 100%);
  box-shadow: 0 0 0 3px rgba(11, 131, 250, 0.15);
}
.hero-bullets li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.6rem;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ─── Form card — light-bg override for this page ─── */
.form-card {
  background: #ffffff;
  color: #161719;
  border: 1px solid rgba(11, 131, 250, 0.15);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow:
    0 24px 60px -24px rgba(11, 131, 250, 0.35),
    0 8px 24px -8px rgba(21, 104, 186, 0.15);
}

/* ─── Assessment form ─── */
.af-head { margin-bottom: 1.25rem; }
.af-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
  color: #161719;
}
.af-sub {
  font-size: 0.925rem;
  color: #6A7177;
  margin: 0;
  line-height: 1.45;
}

.af-field {
  display: block;
  margin-bottom: 0.95rem;
}
.af-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3A3D40;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.af-field input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-size: 1rem;
  line-height: 1.3;
  color: #161719;
  background: #FAFBFC;
  border: 1.5px solid #E5EAF0;
  border-radius: 10px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  appearance: none;
}
.af-field input::placeholder { color: #9CA3A9; }
.af-field input:hover { border-color: #CFD6DE; }
.af-field input:focus {
  outline: none;
  border-color: #0B83FA;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 131, 250, 0.15);
}
.af-field input[aria-invalid="true"] {
  border-color: #E5484D;
  background: #FEF2F2;
}

.af-turnstile {
  margin: 0.5rem 0 1rem;
  min-height: 65px;
}

.af-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}
.af-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.af-fineprint {
  font-size: 0.78rem;
  color: #8C969B;
  line-height: 1.5;
  margin: 0.85rem 0 0;
  text-align: center;
}
.af-fineprint a {
  color: #1568BA;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.af-error {
  margin-top: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ─── Progress state ─── */
.af-progress {
  animation: af-fade-in 0.25s ease-out;
}
.af-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1rem;
  display: grid;
  gap: 0.7rem;
}
.af-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #FAFBFC;
  border: 1px solid #EEF3F7;
  border-radius: 12px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.af-step-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #CFD6DE;
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.af-step-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #6A7177;
  transition: color 0.25s;
}

/* Active step — spinning arc */
.af-step.is-active {
  background: #fff;
  border-color: rgba(11, 131, 250, 0.25);
  box-shadow: 0 6px 18px -8px rgba(11, 131, 250, 0.3);
}
.af-step.is-active .af-step-icon {
  border-color: #0B83FA;
  border-top-color: transparent;
  animation: af-spin 0.9s linear infinite;
}
.af-step.is-active .af-step-label {
  color: #161719;
  font-weight: 600;
}

/* Done step — check */
.af-step.is-done .af-step-icon {
  background: linear-gradient(135deg, #1FBEFC 0%, #0B83FA 100%);
  border-color: transparent;
}
.af-step.is-done .af-step-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.af-step.is-done .af-step-label { color: #3A3D40; }

.af-progress-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #8C969B;
  text-align: center;
}

@keyframes af-spin {
  to { transform: rotate(360deg); }
}
@keyframes af-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Result state ─── */
.af-result { animation: af-fade-in 0.3s ease-out; }
.af-result-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.af-result-check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1FBEFC 0%, #0B83FA 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(11, 131, 250, 0.35);
}
.af-result-sub {
  font-size: 0.95rem;
  color: #3A3D40;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.af-preview-card {
  padding: 1.1rem 1.15rem;
  background: linear-gradient(180deg, #F6FAFF 0%, #FAFBFC 100%);
  border: 1px solid rgba(11, 131, 250, 0.15);
  border-radius: 14px;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.95rem;
}
.af-preview-summary {
  font-size: 0.95rem;
  font-weight: 500;
  color: #161719;
  line-height: 1.5;
  margin: 0;
  padding: 0 0 0.85rem;
  border-bottom: 1px dashed rgba(11, 131, 250, 0.2);
}
.af-preview-group {
  display: grid;
  gap: 0.5rem;
}
.af-preview-h {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.af-preview-h-positive { color: #0B83FA; }
.af-preview-h-gap      { color: #F76B15; }
.af-preview-h::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.af-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.af-chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  line-height: 1.35;
}
.af-chip-positive {
  background: rgba(11, 131, 250, 0.08);
  color: #1568BA;
  border: 1px solid rgba(11, 131, 250, 0.18);
}
.af-chip-gap {
  background: rgba(247, 107, 21, 0.08);
  color: #C1500E;
  border: 1px solid rgba(247, 107, 21, 0.22);
}
.af-preview-empty {
  font-size: 0.9rem;
  color: #6A7177;
  margin: 0;
  text-align: center;
  padding: 0.5rem 0;
}

.af-report-status {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #FAFBFC;
  border: 1px dashed #CFD6DE;
  border-radius: 10px;
}
.af-report-status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #3A3D40;
  line-height: 1.45;
}
.af-report-status-row[hidden] { display: none; }
.af-report-status-err { color: #B91C1C; }
.af-spinner {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(11, 131, 250, 0.25);
  border-top-color: #0B83FA;
  animation: af-spin 0.85s linear infinite;
}
.af-report-status-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1FBEFC 0%, #0B83FA 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.af-report-link-url {
  display: block;
  word-break: break-all;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.78rem;
  color: #1568BA;
  text-decoration: none;
  line-height: 1.4;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(11, 131, 250, 0.12);
}
.af-report-link-url:hover { text-decoration: underline; }

.af-followup {
  width: 100%;
  justify-content: center;
}

/* Loading state for the "Read my full report" CTA — greyed-out, with a
   thin spinner before the label, until the full report finishes. */
.btn.is-loading {
  background: #E8EEF5;
  color: #6A7177;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none !important;
}
.btn.is-loading:hover {
  background: #E8EEF5;
  color: #6A7177;
  transform: none;
}
.btn.is-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.5rem;
  border-radius: 50%;
  border: 2px solid rgba(106, 113, 119, 0.25);
  border-top-color: #6A7177;
  animation: af-cta-spin 0.9s linear infinite;
  vertical-align: -2px;
}
@keyframes af-cta-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::before { animation: none; }
}

/* ─── Section heading text color safety-net for nested sr/container contexts ─── */
.section-light .t-h2,
.section-light .t-h3,
.section-light .section-head .t-h2,
.section-light .faq-body p,
.section-light .faq-body {
  color: #161719;
}

/* ─── How it works section ─── */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.section-head .section-sub {
  margin: 0.85rem auto 0;
  color: #6A7177;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 620px;
}
.t-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0B83FA;
  margin: 0 0 0.6rem;
}

/* ─── Sample map preview (mirrors .rp-map styling from the report) ─── */
.sample-map-wrap {
  max-width: 980px;
  margin: 0 auto;
}
.sample-map-fallback {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: #6A7177;
  font-style: italic;
}

/* ─── Skeleton competitor cards (blurred placeholder, real data in report) ─── */
.sample-comp-strip-wrap .rp-comp-strip {
  /* Slightly tighter than the real report's strip so the skeleton row
     reads as a preview rather than a full strip of cards. */
  grid-auto-columns: minmax(300px, 320px);
}
.sample-comp-skeleton {
  /* Lock the card height a bit so the row feels uniform; skip hover lift. */
  cursor: default;
}
.sample-comp-skeleton:hover {
  transform: none;
  box-shadow: 0 1px 2px rgba(16, 23, 31, 0.03);
}
.sample-comp-skeleton:hover::before { opacity: 0; }
.sample-comp-skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  filter: blur(3.5px) grayscale(0.6);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}
.sample-comp-skeleton-foot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.4rem 0.75rem;
  margin-top: 0.5rem;
  background: rgba(11, 131, 250, 0.08);
  border: 1px solid rgba(11, 131, 250, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1568BA;
  letter-spacing: 0.005em;
}
.sample-comp-skeleton-lock {
  font-size: 0.85rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .sample-comp-strip-wrap .rp-comp-strip {
    grid-auto-columns: minmax(280px, 86vw);
  }
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.how-card {
  background: #fff;
  border: 1px solid #EEF3F7;
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.how-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 131, 250, 0.22);
  box-shadow: 0 20px 40px -20px rgba(11, 131, 250, 0.3);
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0B83FA 0%, #1568BA 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px -6px rgba(11, 131, 250, 0.4);
}
.how-card h3 { margin: 0 0 0.5rem; }
.how-card p { margin: 0; color: #6A7177; font-size: 0.96rem; line-height: 1.55; }

/* ─── Sample output grid ─── */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.sample-card {
  background: #fff;
  border: 1px solid #EEF3F7;
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}
.sample-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #1FBEFC 0%, #0B83FA 100%);
}
.sample-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(11, 131, 250, 0.25);
}
.sample-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0B83FA;
  margin: 0 0 0.6rem;
}
.sample-h {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: #161719;
}
.sample-body {
  margin: 0;
  color: #6A7177;
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ─── Final CTA ─── */
.final-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta h2 {
  color: #fff;
  margin: 0 0 0.75rem;
}
.final-cta-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .sample-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-card { padding: 1.5rem; }
  .af-title { font-size: 1.2rem; }
}

/* ══════════════════════════════════════════════════════════════
   REPORT PAGE (assessment/r/index.html) — premium rewrite
═══════════════════════════════════════════════════════════════ */

.report-page {
  background:
    radial-gradient(1200px 500px at 100% -200px, rgba(11, 131, 250, 0.08), transparent 60%),
    radial-gradient(900px 400px at -100px 400px, rgba(31, 190, 252, 0.06), transparent 60%),
    #F7F9FC;
  color: #161719;
  min-height: 100vh;
}
.report-page h1,
.report-page h2,
.report-page h3,
.report-page h4,
.report-page h5,
.report-page p,
.report-page li,
.report-page strong { color: #161719; }

/* Override the .report-page strong rule so the gift banner stays white. */
.report-page .gift-banner,
.report-page .gift-banner-text,
.report-page .gift-banner-text strong { color: #ffffff; }

/* ─── Nav ─── */
.report-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #EEF3F7;
  box-shadow: 0 1px 0 rgba(16, 23, 31, 0.02), 0 6px 24px -16px rgba(16, 23, 31, 0.1);
}

/* ─── Hero header ─── */
.report-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
.report-header {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem 3.25rem;
  margin-bottom: 3rem;
  background:
    radial-gradient(1200px 400px at 50% -100px, rgba(11, 131, 250, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #FAFBFC 100%);
  border: 1px solid #E5EAF0;
  border-radius: 24px;
  box-shadow: 0 24px 48px -24px rgba(11, 131, 250, 0.18);
  overflow: hidden;
}
.report-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1FBEFC 0%, #0B83FA 50%, #1568BA 100%);
}
.report-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0B83FA;
  background: rgba(11, 131, 250, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.report-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0B83FA;
  box-shadow: 0 0 0 3px rgba(11, 131, 250, 0.15);
}
.report-h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
  color: #161719;
  word-break: break-word;
  line-height: 1.15;
}
.report-meta {
  color: #6A7177;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* ─── Sections ─── */
.report-section { margin-bottom: 2.75rem; }
.report-section-h {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  color: #161719;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: none;
}
.report-section-h::before {
  content: "";
  width: 4px;
  align-self: stretch;
  background: linear-gradient(180deg, #1FBEFC 0%, #0B83FA 100%);
  border-radius: 4px;
}

/* ─── Cards ─── */
.report-card {
  background: #ffffff;
  border: 1px solid #EEF3F7;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 0.85rem;
  transition: box-shadow 0.22s, transform 0.22s;
  box-shadow: 0 1px 2px rgba(16, 23, 31, 0.04);
}
.report-card:hover {
  box-shadow: 0 14px 32px -18px rgba(11, 131, 250, 0.25);
}
.report-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: #161719;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  line-height: 1.3;
}
.report-card h4 a {
  color: #1568BA;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.report-card h4 a:hover { text-decoration: underline; }
.report-card p {
  margin: 0 0 0.55rem;
  line-height: 1.55;
  color: #3A3D40;
  font-size: 0.95rem;
}
.report-card p:last-child { margin-bottom: 0; }
.report-card strong {
  font-weight: 600;
  color: #161719;
}

/* ─── Tags (price tier, impact) ─── */
.report-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  background: rgba(11, 131, 250, 0.1);
  color: #1568BA;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  margin: 0;
}

/* ─── Lists inside cards ─── */
.report-page ul {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.report-page ul li {
  font-size: 0.93rem;
  line-height: 1.5;
  color: #3A3D40;
  padding-left: 1.1rem;
  position: relative;
}
.report-page ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0B83FA;
  opacity: 0.8;
}

/* ─── Loading & error states ─── */
.report-loading, .report-error {
  text-align: center;
  padding: 5rem 1rem;
  color: #6A7177;
}
.report-error .report-h1 { margin-top: 0; }
.report-loading p::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(11, 131, 250, 0.25);
  border-top-color: #0B83FA;
  animation: af-spin 0.85s linear infinite;
  margin-right: 0.5rem;
  vertical-align: -2px;
}

/* ══════════════════════════════════════════════════════════════
   REPORT PAGE — "rp-*" premium components
═══════════════════════════════════════════════════════════════ */

/* ─── Scroll reveal ─── */
.report-page .sr {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.report-page .sr.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Hero ─── */
.rp-hero {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  margin-bottom: 3.5rem;
  position: relative;
}
.rp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0B83FA;
  background: rgba(11, 131, 250, 0.08);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.rp-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0B83FA;
  box-shadow: 0 0 0 4px rgba(11, 131, 250, 0.15);
  animation: rp-pulse 2s ease-in-out infinite;
}
@keyframes rp-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(11, 131, 250, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(11, 131, 250, 0.05); }
}
.rp-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #0A1220;
  word-break: break-word;
  background: linear-gradient(180deg, #0A1220 0%, #2C3440 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rp-hero-meta {
  font-size: 0.95rem;
  color: #6A7177;
  margin: 0;
  font-weight: 500;
}
.rp-hero-loc {
  color: #1568BA;
  font-weight: 600;
}

/* ─── Sections ─── */
.rp-section {
  margin-bottom: 3.5rem;
}
.rp-section-h {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(11, 131, 250, 0.12);
}
.rp-section-h h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0;
  color: #0A1220;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.rp-section-num {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0B83FA;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.55rem;
  background: rgba(11, 131, 250, 0.08);
  border-radius: 6px;
}
.rp-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.55rem;
  background: linear-gradient(135deg, #1FBEFC 0%, #0B83FA 100%);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px -4px rgba(11, 131, 250, 0.5);
}

/* ─── Lead paragraph (large, premium) ─── */
.rp-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: #1F2933;
  font-weight: 400;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid #EEF3F7;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 23, 31, 0.03);
  margin-bottom: 1.25rem;
}
.rp-lead strong,
.rp-quote strong,
.rp-rec-rationale strong,
.rp-comp-rating strong {
  color: #0A1220;
  font-weight: 700;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 131, 250, 0.16) 60%);
  padding: 0 1px;
}

/* ─── Positioning grid (audience + tone) ─── */
.rp-pos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.rp-pos-cell {
  background: #ffffff;
  border: 1px solid #EEF3F7;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: 0 1px 2px rgba(16, 23, 31, 0.03);
}
.rp-cell-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6A7177;
}
.rp-cell-val {
  font-size: 1rem;
  font-weight: 600;
  color: #0A1220;
  line-height: 1.35;
}

/* ─── Two-column signals (what lands + gaps) ─── */
.rp-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.rp-signal {
  background: #ffffff;
  border: 1px solid #EEF3F7;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  position: relative;
  box-shadow: 0 1px 2px rgba(16, 23, 31, 0.03);
}
.rp-signal-pos { border-top: 3px solid #0B83FA; }
.rp-signal-gap { border-top: 3px solid #F76B15; }
.rp-signal h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1F2933;
}
.rp-signal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}
.rp-signal-badge-pos { background: linear-gradient(135deg, #1FBEFC 0%, #0B83FA 100%); }
.rp-signal-badge-gap { background: linear-gradient(135deg, #FDB365 0%, #F76B15 100%); }
.rp-signal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.rp-signal ul li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3A3D40;
  padding-left: 1.3rem;
  position: relative;
}
.rp-signal-pos ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(11, 131, 250, 0.2);
  border: 2px solid #0B83FA;
  box-sizing: border-box;
}
.rp-signal-gap ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 107, 21, 0.2);
  border: 2px solid #F76B15;
  box-sizing: border-box;
}

/* ─── Competitor cards (grid) ─── */
.rp-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

/* Count-aware layouts — avoid leaving a lonely orphan card on the
   trailing row. Applied when the renderer adds .rp-comp-grid--nN. */
.rp-comp-grid--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-comp-grid--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-comp-grid--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 2×2 */
.rp-comp-grid--n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 3+2 */
.rp-comp-grid--n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 3×2 */

@media (max-width: 1100px) {
  .rp-comp-grid--n3,
  .rp-comp-grid--n5,
  .rp-comp-grid--n6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* n5 becomes 2+2+1 — center the trailing orphan */
  .rp-comp-grid--n5 > :last-child {
    grid-column: 1 / -1;
    max-width: 560px;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .rp-comp-grid--n2,
  .rp-comp-grid--n3,
  .rp-comp-grid--n4,
  .rp-comp-grid--n5,
  .rp-comp-grid--n6 {
    grid-template-columns: 1fr;
  }
  .rp-comp-grid--n5 > :last-child { max-width: none; }
}
.rp-comp {
  background: #ffffff;
  border: 1px solid #EEF3F7;
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
  box-shadow: 0 1px 2px rgba(16, 23, 31, 0.03);
  position: relative;
  overflow: hidden;
}
.rp-comp::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1FBEFC 0%, #0B83FA 100%);
  opacity: 0;
  transition: opacity 0.25s;
}
.rp-comp:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(11, 131, 250, 0.25), 0 8px 16px -8px rgba(16, 23, 31, 0.08);
}
.rp-comp:hover::before { opacity: 1; }

/* Subject card — the lead's own gym, always rendered first in the strip. */
.rp-comp--subject {
  border: 2px solid #0B83FA;
  background: linear-gradient(180deg, #F2F8FF 0%, #ffffff 60%);
  box-shadow: 0 6px 24px -8px rgba(11, 131, 250, 0.25);
}
.rp-comp--subject::before {
  opacity: 1;
  height: 4px;
}
.rp-comp--subject .rp-comp-num {
  background: #0B83FA !important;
  color: #ffffff !important;
}
.rp-comp-youbadge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.18rem 0.55rem;
  background: #0B83FA;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Feedback link at the bottom of the report. */
.rp-feedback {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #EEF3F7;
  text-align: center;
  font-size: 0.88rem;
  color: #6A7177;
}
.rp-feedback a {
  color: #0B83FA;
  text-decoration: none;
  font-weight: 600;
}
.rp-feedback a:hover { text-decoration: underline; }
.rp-comp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.rp-comp-title { min-width: 0; flex: 1; }
.rp-comp-title h4 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: #0A1220;
}
.rp-comp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: #6A7177;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.rp-comp-link:hover { color: #0B83FA; }
.rp-price {
  display: inline-flex;
  gap: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  background: rgba(11, 131, 250, 0.06);
  border-radius: 8px;
}
.rp-price-active { color: #0B83FA; }
.rp-price-dim    { color: rgba(11, 131, 250, 0.2); }
.rp-comp-line {
  font-size: 0.97rem;
  line-height: 1.5;
  color: #1F2933;
  margin: 0;
  font-weight: 500;
}
.rp-comp-rating {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6A7177;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: #FAFBFC;
  border-radius: 8px;
}
.rp-rating-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1FBEFC 0%, #0B83FA 100%);
  flex: 0 0 auto;
  margin-top: 0.42em;
}
.rp-rating-text {
  min-width: 0;
  flex: 1;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.rp-comp-themes { margin-top: 0.3rem; }
.rp-comp-themes-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6A7177;
  margin-bottom: 0.5rem;
}

/* ─── Map + cards layout (map on top, horizontal-scroll cards below) ─── */
.rp-map-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.rp-map-wrap { width: 100%; }
.rp-map {
  width: 100%;
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #EEF3F7;
  box-shadow: 0 18px 40px -22px rgba(11, 131, 250, 0.22), 0 6px 16px -6px rgba(16, 23, 31, 0.08);
  background: #F4F6F8;
}

/* Horizontal scroll strip */
.rp-comp-strip-wrap {
  position: relative;
}
.rp-comp-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 360px);
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0.5rem 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 0.5rem;
}
.rp-comp-strip > .rp-comp {
  scroll-snap-align: start;
  height: 100%;
  min-width: 0;
}
/* Native scrollbar suppressed — the top-mounted progress track + count
   indicator + fade gradients carry the scroll affordance instead. */
.rp-comp-strip {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* old Edge */
}
.rp-comp-strip::-webkit-scrollbar { display: none; height: 0; width: 0; }

/* ─── Top scroll-progress strip (above the cards) ─── */
.rp-strip-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.25rem 0.25rem 0.85rem;
  padding: 0;
}
.rp-strip-meta-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: #6A7177;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.rp-strip-meta-current {
  font-weight: 700;
  color: #0B83FA;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.rp-strip-meta-sep {
  color: #B8C0C8;
  font-weight: 400;
  margin: 0 0.1rem;
}
.rp-strip-meta-total {
  font-weight: 700;
  color: #0A1220;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.rp-strip-meta-text {
  margin-left: 0.45rem;
  color: #8A9098;
  font-weight: 500;
}
.rp-strip-track {
  flex: 1;
  position: relative;
  height: 6px;
  background: linear-gradient(90deg, #E8EEF5 0%, #DDE6F0 100%);
  border-radius: 999px;
  overflow: hidden;
  min-width: 80px;
}
.rp-strip-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 33%;
  background: linear-gradient(90deg, #1FBEFC 0%, #0B83FA 100%);
  border-radius: 999px;
  transition: left 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 0 1px rgba(11, 131, 250, 0.15), 0 2px 6px -1px rgba(11, 131, 250, 0.35);
}

/* Edge gradient hints — strong when there's more content in that direction,
   absent when the strip is scrolled to that edge. .is-at-start / .is-at-end
   are toggled by the strip-scroll JS in r/index.html. */
.rp-comp-strip-wrap::before,
.rp-comp-strip-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1rem;
  width: 64px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.rp-comp-strip-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #F7F9FC 0%, rgba(247, 249, 252, 0) 100%);
}
.rp-comp-strip-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #F7F9FC 0%, rgba(247, 249, 252, 0) 100%);
}
.rp-comp-strip-wrap.is-at-start::before { opacity: 0; }
.rp-comp-strip-wrap.is-at-end::after    { opacity: 0; }

.rp-strip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #EEF3F7;
  box-shadow: 0 4px 14px -4px rgba(16, 23, 31, 0.12), 0 1px 3px rgba(16, 23, 31, 0.06);
  font-size: 1.4rem;
  font-weight: 600;
  color: #0B83FA;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.2s, background-color 0.2s, transform 0.15s;
  padding: 0;
  line-height: 1;
}
.rp-strip-btn:hover { background: #FAFBFC; }
.rp-strip-btn:active { transform: translateY(-50%) scale(0.94); }
.rp-strip-btn--prev { left: -8px; }
.rp-strip-btn--next { right: -8px; }
.rp-strip-btn.is-disabled {
  opacity: 0;
  pointer-events: none;
}
.rp-strip-btn-arrow {
  display: block;
  line-height: 1;
}
/* "+N" badge floating top-right of the next button — tells the reader
   exactly how many more cards exist beyond the visible window. */
.rp-strip-btn-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1FBEFC 0%, #0B83FA 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px -1px rgba(11, 131, 250, 0.45), 0 0 0 2px #ffffff;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  animation: rp-strip-pulse 2.4s ease-in-out 0.6s 2;
}
@keyframes rp-strip-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
.rp-strip-btn--next.is-disabled .rp-strip-btn-count { display: none; }

@media (max-width: 900px) {
  .rp-map { height: 360px; }
  .rp-comp-strip { grid-auto-columns: minmax(290px, 88vw); }
  .rp-strip-btn { display: none; }
}
@media (max-width: 640px) {
  .rp-map { height: 280px; }
  .rp-comp-head { flex-direction: column; gap: 0.5rem; }
  .rp-comp-meta { align-self: flex-start; }
  .rp-comp-title h4 { padding-right: 2.5rem; }
  .rp-comp-strip-wrap::before,
  .rp-comp-strip-wrap::after { width: 32px; }
}

/* Numbered badge inside each card (matches map markers 1..N) */
.rp-comp-num {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #161719;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(16, 23, 31, 0.18);
  transition: background-color 0.2s, transform 0.2s;
  z-index: 2;
}
.rp-comp.is-active .rp-comp-num {
  background: #0B83FA;
  transform: scale(1.08);
}
.rp-comp.is-active {
  border-color: rgba(11, 131, 250, 0.55);
  box-shadow: 0 16px 36px -16px rgba(11, 131, 250, 0.4), 0 6px 14px -6px rgba(16, 23, 31, 0.08);
}
.rp-comp.is-active::before { opacity: 1; }

/* Google rating chip in the card header */
.rp-google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1F2933;
  padding: 0.25rem 0.55rem;
  background: #FAFBFC;
  border: 1px solid #EEF3F7;
  border-radius: 8px;
  margin-right: 0.4rem;
}
.rp-google-rating .rp-star { color: #F5B400; font-size: 0.95rem; line-height: 1; }
.rp-google-rating .rp-rating-count { color: #6A7177; font-weight: 500; font-size: 0.78rem; }
.rp-comp-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Address line + footer link */
.rp-comp-address {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: #6A7177;
  margin: 0;
  line-height: 1.4;
}
.rp-comp-address .rp-pin { font-size: 0.9rem; line-height: 1.3; flex: 0 0 auto; }
.rp-comp-foot {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #EEF3F7;
}
.rp-comp-maplink {
  font-size: 0.82rem;
  color: #0B83FA;
  text-decoration: none;
  font-weight: 600;
}
.rp-comp-maplink:hover { text-decoration: underline; }

/* Map info-window styling (Google overrides .gm-style-iw with its own paddings) */
.rp-mapcard {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #1F2933;
  padding: 2px 4px 4px;
  max-width: 240px;
}
.rp-mapcard strong { font-size: 0.95rem; display: block; margin-bottom: 4px; color: #0A1220; }
.rp-mapcard-rating { font-size: 0.82rem; color: #6A7177; margin-bottom: 4px; }
.rp-mapcard-addr   { font-size: 0.78rem; color: #6A7177; }

/* ─── Chips ─── */
.rp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rp-chip {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 999px;
  border: 1px solid;
}
.rp-chips-neutral .rp-chip {
  background: rgba(11, 131, 250, 0.06);
  color: #1568BA;
  border-color: rgba(11, 131, 250, 0.16);
}
.rp-chips-praise .rp-chip {
  background: rgba(16, 163, 127, 0.08);
  color: #0E7A62;
  border-color: rgba(16, 163, 127, 0.2);
}
.rp-chips-complaint .rp-chip {
  background: rgba(247, 107, 21, 0.08);
  color: #B85510;
  border-color: rgba(247, 107, 21, 0.22);
}

/* ─── Positioning matrix (quote) ─── */
.rp-quote {
  background: linear-gradient(135deg, rgba(11, 131, 250, 0.03) 0%, rgba(31, 190, 252, 0.06) 100%);
  border: 1px solid rgba(11, 131, 250, 0.14);
  border-left: 4px solid #0B83FA;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: #1F2933;
  font-weight: 400;
  position: relative;
  font-style: normal;
}
.rp-quote::before {
  content: "“";
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-size: 3rem;
  color: rgba(11, 131, 250, 0.2);
  line-height: 1;
  font-family: Georgia, serif;
}

/* ─── Market voice (praise + complaints split) ─── */
.rp-voice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.rp-voice-col {
  background: #ffffff;
  border: 1px solid #EEF3F7;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 2px rgba(16, 23, 31, 0.03);
}
.rp-voice-col h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rp-voice-col h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.rp-voice-praise h3 { color: #0E7A62; }
.rp-voice-praise h3::before { background: #10A37F; }
.rp-voice-complaint h3 { color: #B85510; }
.rp-voice-complaint h3::before { background: #F76B15; }
.rp-voice-summary {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1F2933;
}
.rp-voice-summary strong { color: #0A1220; font-weight: 700; }
.rp-voice-praise .rp-voice-summary strong { color: #0E7A62; }
.rp-voice-complaint .rp-voice-summary strong { color: #B85510; }

/* ─── Recommendations ─── */
.rp-rec-list {
  display: grid;
  gap: 0.85rem;
}
.rp-rec {
  background: #ffffff;
  border: 1px solid #EEF3F7;
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  box-shadow: 0 1px 2px rgba(16, 23, 31, 0.03);
}
.rp-rec:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 131, 250, 0.22);
  box-shadow: 0 16px 32px -16px rgba(11, 131, 250, 0.22);
}
.rp-rec-num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0B83FA 0%, #1568BA 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px -4px rgba(11, 131, 250, 0.45);
  letter-spacing: -0.02em;
}
.rp-rec-body { flex: 1; min-width: 0; }
.rp-rec-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.rp-rec-head h4 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: #0A1220;
  line-height: 1.3;
}
.rp-rec-body p {
  margin: 0;
  font-size: 0.95rem;
  color: #3A3D40;
  line-height: 1.55;
}
.rp-impact {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}
.rp-impact-high   { background: rgba(229, 72, 77, 0.08);  color: #B53539; border-color: rgba(229, 72, 77, 0.24); }
.rp-impact-medium { background: rgba(247, 107, 21, 0.08); color: #B85510; border-color: rgba(247, 107, 21, 0.24); }
.rp-impact-low    { background: rgba(90, 100, 114, 0.08); color: #5A6472; border-color: rgba(90, 100, 114, 0.22); }

/* Effort badge — same shape as impact, different palette */
.rp-effort {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}
.rp-effort-low    { background: rgba(16, 163, 127, 0.08); color: #0E7A62; border-color: rgba(16, 163, 127, 0.24); }
.rp-effort-medium { background: rgba(247, 107, 21, 0.08); color: #B85510; border-color: rgba(247, 107, 21, 0.24); }
.rp-effort-high   { background: rgba(90, 100, 114, 0.08); color: #5A6472; border-color: rgba(90, 100, 114, 0.22); }

/* Category pill */
.rp-rec-category {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(11, 131, 250, 0.08);
  color: #1568BA;
  border: 1px solid rgba(11, 131, 250, 0.2);
}

.rp-rec-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
  align-items: center;
}

.rp-rec-rationale {
  margin: 0 0 0.85rem !important;
}

.rp-rec-firststep {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  background: linear-gradient(135deg, rgba(11, 131, 250, 0.04) 0%, rgba(31, 190, 252, 0.08) 100%);
  border: 1px solid rgba(11, 131, 250, 0.18);
  border-left: 3px solid #0B83FA;
  border-radius: 10px;
}
.rp-rec-firststep-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1568BA;
  margin-bottom: 0.3rem;
}
.rp-rec-firststep p {
  margin: 0;
  font-size: 0.9rem;
  color: #1F2933;
  line-height: 1.5;
  font-weight: 500;
}

/* ─── Competitor card extras: target, differentiators, weaknesses ─── */
.rp-comp-target {
  display: block;
  margin: 0;
  font-size: 0.85rem;
  color: #1F2933;
  background: #FAFBFC;
  border: 1px solid #EEF3F7;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.rp-comp-target-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6A7177;
  margin-right: 0.5rem;
  vertical-align: 1px;
}
.rp-comp-target > span:not(.rp-comp-target-label) {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.rp-comp-bullets ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.rp-comp-bullets li {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #1F2933;
  padding-left: 1rem;
  position: relative;
  overflow-wrap: anywhere;
}
.rp-comp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.rp-comp-bullets--pos li::before { background: #10A37F; }
.rp-comp-bullets--neg li::before { background: #E5484D; }
.rp-bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  margin-right: 0.4rem;
  vertical-align: -2px;
}
.rp-bullet-icon--pos { background: rgba(16, 163, 127, 0.14); color: #0E7A62; }
.rp-bullet-icon--neg { background: rgba(229, 72, 77, 0.12);  color: #B53539; }

/* ─── Section lead text (used by the action plan intro) ─── */
.rp-section-lead {
  margin: -0.5rem 0 1.4rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #5A6472;
  max-width: 720px;
}

/* ─── 30/60/90 action plan — three-column timeline ─── */
.rp-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.rp-plan-col {
  background: #ffffff;
  border: 1px solid #EEF3F7;
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 23, 31, 0.03);
}
.rp-plan-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.rp-plan-col--now::before  { background: linear-gradient(90deg, #1FBEFC 0%, #0B83FA 100%); }
.rp-plan-col--soon::before { background: linear-gradient(90deg, #0B83FA 0%, #1568BA 100%); }
.rp-plan-col--far::before  { background: linear-gradient(90deg, #1568BA 0%, #0A1220 100%); }
.rp-plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed #EEF3F7;
}
.rp-plan-label {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0A1220;
}
.rp-plan-badge {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0B83FA;
  background: rgba(11, 131, 250, 0.08);
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
}
.rp-plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  counter-reset: planstep;
}
.rp-plan-list li {
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 2.25rem;
  background: #FAFBFC;
  border-radius: 10px;
  border: 1px solid #EEF3F7;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1F2933;
  counter-increment: planstep;
}
.rp-plan-list li::before {
  content: counter(planstep);
  position: absolute;
  top: 0.65rem;
  left: 0.7rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0B83FA;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.rp-plan-col--soon .rp-plan-list li::before { background: #1568BA; }
.rp-plan-col--far  .rp-plan-list li::before { background: #0A1220; }

@media (max-width: 980px) {
  .rp-plan { grid-template-columns: 1fr; }
}

/* ─── Final CTA ─── */
.rp-cta {
  margin-top: 4rem;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 32px 60px -24px rgba(11, 131, 250, 0.45);
}
.rp-cta-inner {
  background:
    radial-gradient(600px 200px at 50% 0, rgba(255, 255, 255, 0.2), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(31, 190, 252, 0.3), transparent 70%),
    linear-gradient(135deg, #0B83FA 0%, #1568BA 100%);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #ffffff;
  position: relative;
}
.rp-cta h3 {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}
.rp-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  line-height: 1.5;
}
.rp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #1568BA;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.25);
}
.rp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.3);
}

/* ─── Responsive ─── */
@media (max-width: 760px) {
  .rp-twocol,
  .rp-voice,
  .rp-pos-grid { grid-template-columns: 1fr; }
  .rp-comp-grid { grid-template-columns: 1fr; }
  .rp-hero { padding: 2rem 1rem 2rem; margin-bottom: 2rem; }
  .rp-section { margin-bottom: 2.25rem; }
  .rp-section-h { gap: 0.65rem; margin-bottom: 1rem; padding-bottom: 0.75rem; }
  .rp-rec { padding: 1.15rem 1.25rem; gap: 1rem; }
  .rp-rec-num { width: 38px; height: 38px; font-size: 1rem; }
  .rp-cta-inner { padding: 2.5rem 1.25rem; }
  .rp-quote { padding: 1.5rem 1.5rem; }
}

/* ─── Legacy .report-* classes kept for backward compatibility ─── */

/* ─── Footer CTA ─── */
.report-footer-cta {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(800px 300px at 50% 0, rgba(255,255,255,0.2), transparent 70%),
    linear-gradient(135deg, #0B83FA 0%, #1568BA 100%);
  border-radius: 22px;
  margin-top: 3rem;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(11, 131, 250, 0.45);
}
.report-footer-cta h3 {
  color: #ffffff !important;
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.report-footer-cta p {
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
}
.report-footer-cta .btn {
  background: #ffffff !important;
  color: #1568BA !important;
  font-weight: 700;
}
.report-footer-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.25);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .report-wrap { padding: 1.5rem 1rem 3rem; }
  .report-header { padding: 2rem 1.25rem 2.25rem; border-radius: 18px; }
  .report-card { padding: 1.25rem; border-radius: 14px; }
  .report-footer-cta { padding: 2.25rem 1.25rem; border-radius: 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   MAGNETIC CTA — cursor-attract effect on primary buttons.
   JS sets --mx / --my on mousemove; the transform follows the cursor
   inside the button bounds. Skipped on touch + reduced-motion.
═══════════════════════════════════════════════════════════════════════ */
.btn-magnetic {
  --mx: 0px;
  --my: 0px;
  transform: translate(var(--mx), var(--my));
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background var(--ease),
    box-shadow var(--ease);
}
.btn-magnetic.btn-primary:hover,
.btn-magnetic.rp-cta-btn:hover {
  transform: translate(var(--mx), calc(var(--my) - 2px));
}
@media (prefers-reduced-motion: reduce) {
  .btn-magnetic { transition: background var(--ease), box-shadow var(--ease); }
}

/* ═══════════════════════════════════════════════════════════════════════
   Secondary text-link CTA below the primary "Read my report" button on
   the assessment landing page.
═══════════════════════════════════════════════════════════════════════ */
.af-followup-secondary {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: #6A7177;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ease);
}
.af-followup-secondary:hover { color: #0B83FA; }
