/* ЛидыПоСайтам — design system inspired by rusprofile.ru */
:root {
  --rp-blue: #346df1;
  --rp-blue-dark: #2858c8;
  --rp-blue-light: #e8effe;
  --rp-green: #09c400;
  --rp-red: #f52f12;
  --rp-orange: #f8b200;
  --rp-gray-50: #f0f2f5;
  --rp-gray-100: #e8e8e8;
  --rp-gray-200: #cccccc;
  --rp-gray-400: #888888;
  --rp-gray-600: #555555;
  --rp-gray-900: #222222;
  --rp-white: #ffffff;
  --rp-radius: 8px;
  --rp-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --rp-font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: var(--rp-font);
  font-weight: 400;
  color: var(--rp-gray-900);
  background: var(--rp-gray-50);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--rp-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.rp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header (rusprofile-style blue bar) ── */
.rp-header {
  background: var(--rp-blue);
  color: var(--rp-white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(52, 109, 241, 0.3);
}

.rp-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.rp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rp-white);
  text-decoration: none;
  flex-shrink: 0;
}
.rp-logo:hover { text-decoration: none; opacity: 0.92; }

.rp-logo__icon {
  width: 36px;
  height: 36px;
  background: var(--rp-white);
  color: var(--rp-blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.rp-logo__text { font-size: 20px; font-weight: 300; }
.rp-logo__text strong { font-weight: 700; }

.rp-search {
  flex: 1;
  display: flex;
  min-width: 200px;
  max-width: 520px;
}

.rp-search__input {
  flex: 1;
  border: none;
  border-radius: var(--rp-radius) 0 0 var(--rp-radius);
  padding: 10px 16px;
  font-family: var(--rp-font);
  font-size: 15px;
  outline: none;
}
.rp-search__input:focus { box-shadow: inset 0 0 0 2px var(--rp-blue-light); }

.rp-search__btn {
  background: var(--rp-gray-900);
  color: var(--rp-white);
  border: none;
  border-radius: 0 var(--rp-radius) var(--rp-radius) 0;
  padding: 10px 20px;
  font-family: var(--rp-font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.rp-search__btn:hover { background: #111; }

.rp-nav {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.rp-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.rp-nav a:hover { color: var(--rp-white); text-decoration: underline; }

/* ── Main ── */
.rp-main { flex: 1; padding: 24px 0 48px; }

.rp-loading {
  text-align: center;
  padding: 60px;
  color: var(--rp-gray-400);
}

/* ── Hero (homepage) ── */
.rp-hero {
  text-align: center;
  padding: 40px 0 32px;
}
.rp-hero h1 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--rp-gray-900);
}
.rp-hero p {
  font-size: 16px;
  color: var(--rp-gray-600);
  margin: 0 0 32px;
  font-weight: 300;
}

.rp-trust-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--rp-gray-500);
  margin: 0 0 20px;
  line-height: 1.5;
}

.rp-trust-samples__list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.rp-stats-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rp-stats-block {
  margin-bottom: 32px;
}

.rp-live-hint {
  text-align: center;
  margin: 0;
  font-size: 12px;
  color: var(--rp-gray-400);
  font-weight: 300;
  min-height: 1.2em;
}

.rp-stat-card {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  padding: 20px 28px;
  box-shadow: var(--rp-shadow);
  min-width: 150px;
  text-align: center;
}
.rp-stat-card__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--rp-blue);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.rp-stat-card__label {
  font-size: 13px;
  color: var(--rp-gray-600);
  margin-top: 4px;
}

/* Flip odometer */
.rp-odo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 1.2em;
  font-variant-numeric: tabular-nums;
}
.rp-odo__sep {
  display: inline-block;
  width: 0.3em;
  text-align: center;
  opacity: 0.75;
  font-weight: 600;
}
.rp-odo__digit {
  --odo-delay: 0ms;
  position: relative;
  display: inline-block;
  width: 0.66em;
  height: 1.15em;
  perspective: 260px;
}
.rp-odo__window {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(180deg, #eef3ff 0%, #e3ebff 48%, #d7e3ff 52%, #eef3ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(52, 109, 241, 0.14);
}
.rp-odo__window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(52, 109, 241, 0.12);
  pointer-events: none;
  z-index: 2;
}
.rp-odo__current,
.rp-odo__next {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--rp-blue);
  backface-visibility: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.rp-odo__next {
  transform: translateY(110%);
  opacity: 0;
}
.rp-odo__digit--flip .rp-odo__current {
  animation: rpOdoOut 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--odo-delay);
}
.rp-odo__digit--flip .rp-odo__next {
  animation: rpOdoIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--odo-delay);
}
@keyframes rpOdoOut {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-110%); opacity: 0; }
}
@keyframes rpOdoIn {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-odo__digit--flip .rp-odo__current,
  .rp-odo__digit--flip .rp-odo__next {
    animation: none;
  }
  .rp-odo__next { opacity: 1; transform: none; }
}

/* ── Niche chips ── */
.rp-section-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 16px;
}

.rp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rp-white);
  border: 1px solid var(--rp-gray-200);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--rp-gray-900);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.rp-chip:hover {
  border-color: var(--rp-blue);
  background: var(--rp-blue-light);
  text-decoration: none;
}
.rp-chip__count {
  background: var(--rp-gray-100);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--rp-gray-600);
}

/* ── White box cards ── */
.rp-card {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.rp-card__head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rp-gray-100);
  font-size: 17px;
  font-weight: 500;
}

.rp-card__body { padding: 20px 24px; }

/* ── Breadcrumb ── */
.rp-breadcrumb {
  font-size: 13px;
  color: var(--rp-gray-400);
  margin-bottom: 16px;
}
.rp-breadcrumb a { color: var(--rp-gray-600); }

/* ── Search results header ── */
.rp-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.rp-results-head h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}
.rp-results-count {
  font-size: 14px;
  color: var(--rp-gray-600);
  font-weight: 300;
}

.rp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 32px;
  max-width: 920px;
}

.rp-quick-niches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.rp-chip--sm {
  padding: 4px 10px;
  font-size: 12px;
}

.rp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rp-filters--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.rp-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.rp-filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--rp-blue-light);
  color: var(--rp-blue-dark);
  font-size: 13px;
}

.rp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--rp-radius);
  padding: 10px 16px;
  font-family: var(--rp-font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rp-btn__icon {
  font-size: 15px;
  line-height: 1;
}

.rp-btn__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--rp-blue);
  color: var(--rp-white);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.rp-btn--outline {
  background: var(--rp-white);
  border: 1px solid var(--rp-gray-200);
  color: var(--rp-gray-900);
  box-shadow: var(--rp-shadow);
}

.rp-btn--outline:hover {
  border-color: var(--rp-blue);
  color: var(--rp-blue);
}

.rp-btn--primary {
  background: var(--rp-blue);
  color: var(--rp-white);
}

.rp-btn--primary:hover {
  background: var(--rp-blue-dark);
}

.rp-btn--ghost {
  background: transparent;
  color: var(--rp-gray-600);
}

.rp-btn--ghost:hover {
  color: var(--rp-gray-900);
}

body.rp-modal-open {
  overflow: hidden;
}

.rp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rp-modal {
  width: min(760px, 100%);
  max-height: min(86vh, 720px);
  background: var(--rp-white);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.rp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--rp-gray-100);
}

.rp-modal__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.rp-modal__close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--rp-gray-400);
  cursor: pointer;
}

.rp-modal__search {
  padding: 12px 20px;
}

.rp-modal__input {
  width: 100%;
  border: 1px solid var(--rp-gray-200);
  border-radius: var(--rp-radius);
  padding: 10px 14px;
  font-family: var(--rp-font);
  font-size: 14px;
}

.rp-modal__body {
  padding: 0 20px;
  overflow: auto;
  flex: 1;
}

.rp-niche-filters__grid--modal {
  max-height: none;
  padding-bottom: 12px;
}

.rp-modal__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--rp-gray-100);
}

.rp-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.rp-modal__hint {
  margin: 0;
  font-size: 13px;
  color: var(--rp-gray-600);
  line-height: 1.4;
}

.rp-sort-disclaimer {
  margin: -8px 0 16px;
  font-size: 13px;
  color: var(--rp-gray-600);
}

.rp-probe-date {
  font-size: 12px;
  margin-top: 4px;
}

/* ── Filters bar ── */
.rp-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.rp-filters__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.rp-niche-filters {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  padding: 16px 18px;
}

.rp-niche-filters__head {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--rp-gray-900);
}

.rp-niche-filters__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-height: 220px;
  overflow-y: auto;
}

.rp-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.rp-check input {
  accent-color: var(--rp-blue);
  width: 16px;
  height: 16px;
  margin: 0;
}

.rp-niche-empty {
  margin: 0 0 12px;
  font-size: 14px;
}

.rp-check--empty {
  opacity: 0.55;
}

.rp-chip__count--zero {
  color: var(--rp-gray-400);
}

.rp-select {
  border: 1px solid var(--rp-gray-200);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--rp-font);
  font-size: 14px;
  background: var(--rp-white);
  cursor: pointer;
}

/* ── Table (rusprofile company list style) ── */
.rp-table-wrap { overflow-x: auto; }

.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rp-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--rp-gray-50);
  font-weight: 500;
  font-size: 13px;
  color: var(--rp-gray-600);
  border-bottom: 1px solid var(--rp-gray-100);
  white-space: nowrap;
}

.rp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rp-gray-100);
  vertical-align: middle;
}

.rp-table tr:hover td { background: #fafbfc; }

.rp-table .rp-domain-link {
  font-weight: 500;
  font-size: 15px;
}

.rp-table .rp-muted {
  color: var(--rp-gray-400);
  font-size: 13px;
}

/* ── Badges / status pills ── */
.rp-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.rp-badge--active {
  background: #e6f9e5;
  color: #067a00;
}

.rp-badge--not-ready {
  background: #f5f5f5;
  color: var(--rp-gray-600);
}

.rp-badge--unknown {
  background: #eef2ff;
  color: #4338ca;
}

.rp-badge--zone-ru {
  background: var(--rp-blue-light);
  color: var(--rp-blue);
}

.rp-badge--zone-rf {
  background: #fff3e0;
  color: #e65100;
}

/* ── Domain profile (company card layout) ── */
.rp-profile {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

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

.rp-profile__title {
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
  word-break: break-all;
}

.rp-profile__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.rp-profile__link {
  font-size: 14px;
}

/* ── Tabs ── */
.rp-tabs {
  display: flex;
  border-bottom: 2px solid var(--rp-gray-100);
  margin-bottom: 0;
}

.rp-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rp-gray-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--rp-font);
  transition: color 0.2s;
}
.rp-tab:hover { color: var(--rp-blue); }
.rp-tab--active {
  color: var(--rp-blue);
  border-bottom-color: var(--rp-blue);
}

.rp-tab-panel { display: none; padding: 24px; }
.rp-tab-panel--active { display: block; }

/* ── Key-value rows (rusprofile requisites style) ── */
.rp-kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
@media (max-width: 600px) {
  .rp-kv { grid-template-columns: 1fr; }
}

.rp-kv dt {
  color: var(--rp-gray-600);
  font-weight: 400;
  margin: 0;
}
.rp-kv dd {
  margin: 0;
  font-weight: 400;
  word-break: break-word;
}

/* ── Sidebar summary box ── */
.rp-sidebar-box {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  overflow: hidden;
}

.rp-sidebar-box__head {
  background: var(--rp-blue);
  color: var(--rp-white);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
}

.rp-sidebar-box__body {
  padding: 16px 18px;
}

.rp-sidebar-box .rp-kv {
  grid-template-columns: 1fr;
  gap: 12px;
}
.rp-sidebar-box .rp-kv dt { font-size: 12px; }
.rp-sidebar-box .rp-kv dd { font-size: 14px; font-weight: 500; }

/* ── About section ── */
.rp-about {
  max-width: 720px;
  margin: 0 auto;
}
.rp-about h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 12px;
}
.rp-about p {
  color: var(--rp-gray-600);
  font-weight: 300;
  line-height: 1.7;
}

.rp-about-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.rp-about-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--rp-gray-600);
  font-weight: 300;
}
.rp-about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rp-blue);
  font-weight: 700;
}

/* ── Pagination ── */
.rp-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.rp-page-btn {
  border: 1px solid var(--rp-gray-200);
  background: var(--rp-white);
  border-radius: 4px;
  padding: 8px 16px;
  font-family: var(--rp-font);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.rp-page-btn:hover:not(:disabled) {
  border-color: var(--rp-blue);
  color: var(--rp-blue);
}
.rp-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ── Footer ── */
.rp-footer {
  background: var(--rp-white);
  border-top: 1px solid var(--rp-gray-100);
  padding: 24px 0;
  margin-top: auto;
}

.rp-footer__inner p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--rp-gray-600);
}
.rp-footer__muted { color: var(--rp-gray-400) !important; font-weight: 300; }

/* ── Cookie banner ── */
.rp-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: var(--rp-white);
  border-top: 1px solid var(--rp-gray-200);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 0;
}

.rp-cookie-banner[hidden] {
  display: none !important;
}

.rp-cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.rp-cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 13px;
  color: var(--rp-gray-600);
  line-height: 1.5;
}

.rp-cookie-banner__text a {
  color: var(--rp-blue);
  text-decoration: underline;
}

.rp-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-cookie-banner__btn {
  white-space: nowrap;
}

.rp-seo--legal h2[id="cookies"] {
  scroll-margin-top: 80px;
}

.rp-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

.rp-consent-check input {
  margin-top: 3px;
  accent-color: var(--rp-blue);
  flex-shrink: 0;
}

.rp-consent-check a {
  color: var(--rp-blue);
}

/* ── Hero search (homepage) ── */
.rp-hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--rp-shadow);
  border-radius: var(--rp-radius);
  overflow: hidden;
}

.rp-hero-search__input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-family: var(--rp-font);
  font-size: 16px;
  outline: none;
}

.rp-hero-search__btn {
  background: var(--rp-blue);
  color: var(--rp-white);
  border: none;
  padding: 14px 28px;
  font-family: var(--rp-font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.rp-hero-search__btn:hover { background: var(--rp-blue-dark); }

/* ── Text utilities ── */
.rp-muted { color: var(--rp-gray-400); }
.rp-text-success { color: var(--rp-green); font-weight: 500; }
.rp-text-danger { color: var(--rp-red); font-weight: 500; }

.rp-error {
  color: var(--rp-red);
  text-align: center;
  padding: 32px;
}

.rp-empty {
  text-align: center;
  color: var(--rp-gray-400);
  padding: 32px !important;
}

.rp-code {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  background: var(--rp-gray-50);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.rp-san-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.rp-subsection-title {
  font-size: 16px;
  font-weight: 500;
  margin: 24px 0 12px;
}

.rp-section-anchor { scroll-margin-top: 80px; }

.rp-confidence {
  font-weight: 700;
  color: var(--rp-green);
}

.rp-classification-note {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.rp-page-info {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--rp-gray-600);
}

/* ── Buttons ── */
.rp-btn {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--rp-font);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.rp-btn--primary {
  background: var(--rp-blue);
  color: var(--rp-white);
}
.rp-btn--primary:hover {
  background: var(--rp-blue-dark);
  text-decoration: none;
  color: var(--rp-white);
}

.rp-btn--outline {
  background: var(--rp-white);
  color: var(--rp-blue);
  border: 1px solid var(--rp-gray-200);
}
.rp-btn--outline:hover {
  border-color: var(--rp-blue);
  text-decoration: none;
}

/* ── Pricing ── */
.rp-hero-cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.rp-hero-cta__hint {
  font-size: 13px;
  color: var(--rp-gray-600);
  font-weight: 300;
}

.rp-pricing-hero {
  margin: 8px 0 24px;
}

.rp-pricing-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
}

.rp-pricing-hero p {
  margin: 0;
  max-width: 640px;
  color: var(--rp-gray-600);
  font-weight: 300;
  font-size: 15px;
}

.rp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.rp-plan {
  background: var(--rp-white);
  border: 1px solid var(--rp-gray-100);
  border-radius: var(--rp-radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.rp-plan--featured {
  border-color: var(--rp-blue);
  box-shadow: inset 0 0 0 1px var(--rp-blue);
  background: var(--rp-white);
}

.rp-plan__tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rp-blue);
  margin-bottom: 8px;
}

.rp-plan__name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.rp-plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.rp-plan__amount {
  font-size: 26px;
  font-weight: 700;
  color: var(--rp-gray-900);
}

.rp-plan__period {
  font-size: 13px;
  color: var(--rp-gray-400);
}

.rp-plan__blurb {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--rp-gray-600);
  font-weight: 300;
  line-height: 1.45;
  min-height: 3.2em;
}

.rp-plan__features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1;
}

.rp-plan__features li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 13px;
  color: var(--rp-gray-900);
  line-height: 1.4;
}

.rp-plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rp-blue);
}

.rp-plan__cta {
  width: 100%;
  text-align: center;
}

.rp-pricing-compare {
  margin-bottom: 24px;
}

.rp-pricing-note {
  margin: 16px 0 0;
  font-size: 13px;
}

.rp-table--compact th,
.rp-table--compact td {
  font-size: 13px;
  padding: 8px 10px;
}

.rp-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 0 20px;
}

.rp-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rp-gray-600);
}

.rp-input {
  width: 100%;
  border: 1px solid var(--rp-gray-200);
  border-radius: var(--rp-radius);
  padding: 10px 12px;
  font-family: var(--rp-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--rp-gray-900);
  background: var(--rp-white);
}

.rp-input:focus {
  outline: none;
  border-color: var(--rp-blue);
}

.rp-textarea {
  resize: vertical;
  min-height: 72px;
}

.rp-subscribe-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rp-subscribe-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.rp-subscribe-msg--ok { color: #0a7a08; }
.rp-subscribe-msg--err { color: var(--rp-red); }

.rp-btn--ghost {
  background: transparent;
  color: var(--rp-gray-600);
  border: 1px solid transparent;
}
.rp-btn--ghost:hover {
  color: var(--rp-blue);
  text-decoration: none;
}

/* ── SEO landings ── */
#seo-content[hidden],
#app[hidden] {
  display: none !important;
}

.rp-seo {
  max-width: 720px;
  margin: 8px 0 32px;
}

.rp-seo h1 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--rp-gray-900);
}

.rp-seo h2 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 500;
}

.rp-seo p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--rp-gray-900);
}

.rp-seo__links {
  margin: 0 0 16px;
  padding-left: 1.2em;
  line-height: 1.7;
}

.rp-seo__links a {
  color: var(--rp-blue);
  text-decoration: none;
}

.rp-seo__links a:hover {
  text-decoration: underline;
}

.rp-seo__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 !important;
}

.rp-seo--home-crawl {
  /* visible to crawlers in initial HTML; hidden by SPA */
  margin-bottom: 24px;
}

.rp-seo-teaser {
  margin-bottom: 20px;
}

.rp-seo-teaser__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.rp-seo-teaser__grid a {
  font-size: 14px;
  color: var(--rp-blue);
  text-decoration: none;
}

.rp-seo-teaser__grid a:hover {
  text-decoration: underline;
}

/* ── Alert banners ── */
.rp-alert {
  padding: 12px 16px;
  border-radius: var(--rp-radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.rp-alert--info {
  background: var(--rp-blue-light);
  color: var(--rp-blue-dark);
  border: 1px solid rgba(52, 109, 241, 0.2);
}
.rp-alert--warning {
  background: #fff8e6;
  color: #8a6500;
  border: 1px solid rgba(248, 178, 0, 0.3);
}

/* ── Auth & account ── */
.rp-nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.rp-nav-auth a {
  color: var(--rp-white);
  font-weight: 500;
  text-decoration: none;
}
.rp-nav-auth a:hover { text-decoration: underline; opacity: 0.95; }

.rp-nav-auth__email {
  font-size: 12px;
  opacity: 0.85;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-auth-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0 48px;
}

.rp-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  padding: 28px 32px;
}

.rp-auth-card__title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 500;
  color: var(--rp-gray-900);
}

.rp-auth-card__links {
  margin: 20px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--rp-gray-600);
}

.rp-auth-dev-note {
  font-size: 13px;
  margin-top: 12px;
}

.rp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rp-form__submit {
  width: 100%;
  margin-top: 4px;
}

.rp-form-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.rp-form-msg--err { color: var(--rp-red); }
.rp-form-msg--ok { color: #0a7a08; }
.rp-form-msg--info { color: var(--rp-blue-dark); }

.rp-account-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 8px 0 32px;
  align-items: start;
}

.rp-account-layout__title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 500;
}

.rp-account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  padding: 8px;
  position: sticky;
  top: 72px;
}

.rp-account-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--rp-gray-900);
  text-decoration: none;
}
.rp-account-nav__link:hover {
  background: var(--rp-gray-50);
  text-decoration: none;
}
.rp-account-nav__link--active {
  background: var(--rp-blue-light);
  color: var(--rp-blue-dark);
  font-weight: 500;
}

.rp-account-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.rp-stats-row--account {
  margin-bottom: 20px;
}

.rp-stat-card__num--sm {
  font-size: 16px !important;
  font-weight: 500;
  word-break: break-all;
}

.rp-admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  max-width: 400px;
}

.rp-admin-table .rp-select--sm {
  min-width: 100px;
  font-size: 13px;
  padding: 4px 8px;
}

.rp-btn--sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* ── Responsive header ── */
@media (max-width: 768px) {
  .rp-header__inner { flex-direction: column; align-items: stretch; }
  .rp-search { max-width: none; }
  .rp-nav { justify-content: center; }
  .rp-hero h1 { font-size: 22px; }
  .rp-hero-search { flex-direction: column; border-radius: var(--rp-radius); }
  .rp-hero-search__btn { border-radius: 0 0 var(--rp-radius) var(--rp-radius); }
  .rp-table th:nth-child(5),
  .rp-table td:nth-child(5) { display: none; }
  .rp-pricing-grid { grid-template-columns: 1fr; }
  .rp-pricing-hero h1 { font-size: 22px; }
  .rp-account-layout { grid-template-columns: 1fr; }
  .rp-account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
  }
  .rp-nav-auth {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .rp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
