/* ResidentePRO Landing Page Components */

/* ─── Header ─── */
.rp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--rp-header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--rp-transition), box-shadow var(--rp-transition);
}

.rp-header.is-scrolled {
  border-bottom-color: var(--rp-border);
  box-shadow: var(--rp-shadow-sm);
}

.rp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--rp-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.rp-header__logo img {
  height: 48px;
  width: auto;
}

.rp-header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.rp-header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rp-text-secondary);
  position: relative;
}

.rp-header__nav a:hover {
  color: var(--rp-brand);
}

.rp-header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rp-brand-gradient);
  border-radius: 2px;
  transition: width var(--rp-transition);
}

.rp-header__nav a:hover::after {
  width: 100%;
}

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

.rp-header__menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--rp-brand-soft);
  border-radius: var(--rp-radius-md);
  color: var(--rp-brand);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile drawer */
.rp-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}

.rp-mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.rp-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity var(--rp-transition-slow);
}

.rp-mobile-drawer.is-open .rp-mobile-drawer__backdrop {
  opacity: 1;
}

.rp-mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--rp-surface);
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--rp-transition-slow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--rp-shadow-lg);
}

.rp-mobile-drawer.is-open .rp-mobile-drawer__panel {
  transform: translateX(0);
}

.rp-mobile-drawer__close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--rp-bg);
  border-radius: var(--rp-radius-md);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--rp-text-muted);
  margin-bottom: 16px;
}

.rp-mobile-drawer__link {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--rp-text);
  border-radius: var(--rp-radius-md);
  transition: background var(--rp-transition);
}

.rp-mobile-drawer__link:hover {
  background: var(--rp-brand-soft);
  color: var(--rp-brand);
}

.rp-mobile-drawer__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--rp-border);
}

/* ─── Hero ─── */
.rp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--rp-header-height) + 48px) 0 80px;
  overflow: hidden;
}

.rp-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 40%, #f1f5f9 100%);
  z-index: 0;
}

.rp-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(100, 77, 220, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(100, 77, 220, 0.08) 0%, transparent 50%);
}

.rp-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.rp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--rp-brand-soft);
  border: 1px solid var(--rp-brand-muted);
  border-radius: var(--rp-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rp-brand);
  margin-bottom: 24px;
}

.rp-hero__badge i {
  font-size: 0.75rem;
}

.rp-hero__title {
  margin-bottom: 20px;
}

.rp-hero__subtitle {
  font-size: 1.15rem;
  color: var(--rp-text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.rp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.rp-hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.rp-hero__stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rp-text);
  letter-spacing: -0.02em;
}

.rp-hero__stat span {
  font-size: 0.8rem;
  color: var(--rp-text-muted);
  font-weight: 500;
}

.rp-hero__visual {
  position: relative;
}

.rp-hero__visual img {
  border-radius: var(--rp-radius-2xl);
  box-shadow: var(--rp-shadow-lg);
  width: 100%;
}

.rp-hero__visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--rp-brand-gradient);
  border-radius: var(--rp-radius-2xl);
  opacity: 0.12;
  z-index: -1;
  transform: rotate(-2deg);
}

.rp-hero__float-card {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  padding: 16px 20px;
  box-shadow: var(--rp-shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: rp-float 4s ease-in-out infinite;
}

@keyframes rp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.rp-hero__float-card i {
  width: 40px;
  height: 40px;
  background: var(--rp-success-soft);
  color: var(--rp-success);
  border-radius: var(--rp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-hero__float-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--rp-text);
}

.rp-hero__float-card span {
  font-size: 0.75rem;
  color: var(--rp-text-muted);
}

/* ─── Feature cards grid ─── */
.rp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.rp-feature-card {
  padding: 32px 24px;
  text-align: center;
}

.rp-feature-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--rp-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
  color: #fff;
}

.rp-feature-card__icon--brand { background: var(--rp-brand-gradient); box-shadow: var(--rp-shadow-brand); }
.rp-feature-card__icon--success { background: linear-gradient(145deg, #059669, #047857); }
.rp-feature-card__icon--warning { background: linear-gradient(145deg, #f59e0b, #d97706); }
.rp-feature-card__icon--danger { background: linear-gradient(145deg, #ef4444, #dc2626); }
.rp-feature-card__icon--info { background: linear-gradient(145deg, #0ea5e9, #0284c7); }

.rp-feature-card h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.rp-feature-card p {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ─── Role filter (funcionalidades) ─── */
.rp-role-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: -8px 0 32px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.rp-role-filter__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rp-text-light);
  letter-spacing: 0.01em;
}

.rp-role-filter__pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 3px;
  border-radius: var(--rp-radius-pill);
  background: rgba(15, 23, 42, 0.04);
}

.rp-role-filter__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  border-radius: var(--rp-radius-pill);
  background: transparent;
  color: var(--rp-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--rp-transition), color var(--rp-transition);
}

.rp-role-filter__pill i {
  font-size: 0.75rem;
  opacity: 0.55;
}

.rp-role-filter__pill:hover {
  color: var(--rp-text-secondary);
  background: rgba(255, 255, 255, 0.65);
}

.rp-role-filter__pill.is-active {
  background: var(--rp-surface);
  color: var(--rp-brand-dark);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.rp-role-filter__pill.is-active i {
  opacity: 0.75;
  color: var(--rp-brand);
}

/* ─── Features carousel ─── */
.rp-features-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.rp-features-carousel__viewport {
  overflow: hidden;
  border-radius: var(--rp-radius-lg);
}

.rp-features-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform var(--rp-transition-slow);
  will-change: transform;
}

.rp-features-carousel__slide {
  flex: 0 0 auto;
  min-width: 0;
}

.rp-features-carousel__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rp-border);
  background: var(--rp-surface);
  color: var(--rp-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--rp-transition), color var(--rp-transition),
    border-color var(--rp-transition), box-shadow var(--rp-transition), opacity var(--rp-transition);
  flex-shrink: 0;
}

.rp-features-carousel__nav:hover:not(:disabled) {
  border-color: var(--rp-brand);
  color: var(--rp-brand);
  box-shadow: var(--rp-shadow-sm);
}

.rp-features-carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rp-features-carousel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.rp-features-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-features-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--rp-border);
  cursor: pointer;
  padding: 0;
  transition: background var(--rp-transition), transform var(--rp-transition), width var(--rp-transition);
}

.rp-features-carousel__dot.is-active {
  background: var(--rp-brand);
  transform: scale(1.15);
}

.rp-features-carousel__dot:hover:not(.is-active) {
  background: var(--rp-brand-muted);
}

.rp-features-carousel__count {
  font-size: 0.85rem;
  color: var(--rp-text-muted);
  margin: 0;
}

.rp-features-carousel .rp-feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rp-features-carousel .rp-feature-card p {
  flex: 1;
}

/* ─── Split section (image + content) ─── */
.rp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.rp-split--reverse .rp-split__visual {
  order: -1;
}

.rp-split__visual img {
  border-radius: var(--rp-radius-xl);
  box-shadow: var(--rp-shadow-md);
  width: 100%;
}

.rp-split__content h2 {
  margin-bottom: 16px;
}

.rp-split__content > p {
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* Mini feature cards — PWA accent bar pattern */
.rp-mini-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.rp-mini-feature {
  background: var(--rp-bg-alt);
  border-radius: var(--rp-radius-md);
  padding: 18px;
  border-left: 4px solid var(--rp-brand);
  transition: background var(--rp-transition);
}

.rp-mini-feature:hover {
  background: var(--rp-brand-soft);
}

.rp-mini-feature--success { border-left-color: var(--rp-success); }
.rp-mini-feature--warning { border-left-color: var(--rp-warning); }
.rp-mini-feature--danger { border-left-color: var(--rp-danger); }

.rp-mini-feature h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-mini-feature h5 i {
  color: var(--rp-brand);
  font-size: 0.85rem;
}

.rp-mini-feature p {
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ─── Module cards ─── */
.rp-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rp-module-card {
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.rp-module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rp-brand-gradient);
}

.rp-module-card__icon {
  width: 64px;
  height: 64px;
  background: var(--rp-brand-soft);
  border-radius: var(--rp-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--rp-brand);
}

.rp-module-card h4 {
  margin-bottom: 8px;
}

.rp-module-card > p {
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.rp-module-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rp-text-secondary);
  border-bottom: 1px solid var(--rp-border-light);
}

.rp-module-card__list li:last-child {
  border-bottom: none;
}

.rp-module-card__list li i {
  color: var(--rp-brand);
  font-size: 0.75rem;
}

/* ─── Screenshots carousel ─── */
.rp-screenshots {
  background: var(--rp-brand-gradient);
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.rp-screenshots::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.rp-screenshots__header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.rp-screenshots__header h2 {
  color: #fff;
}

.rp-screenshots__header p {
  color: rgba(255, 255, 255, 0.75);
}

.rp-screenshots__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 24px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}

.rp-screenshots__track::-webkit-scrollbar {
  display: none;
}

.rp-screenshots__slide {
  flex: 0 0 min(280px, 75vw);
  scroll-snap-align: center;
}

.rp-screenshots__slide img {
  border-radius: var(--rp-radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  width: 100%;
}

/* ─── FAQ ─── */
.rp-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.rp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rp-faq__item {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
  transition: border-color var(--rp-transition), box-shadow var(--rp-transition);
}

.rp-faq__item.is-open {
  border-color: var(--rp-brand-muted);
  box-shadow: var(--rp-shadow-sm);
}

.rp-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rp-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--rp-transition);
}

.rp-faq__question:hover {
  color: var(--rp-brand);
}

.rp-faq__question i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--rp-brand-soft);
  color: var(--rp-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: transform var(--rp-transition);
}

.rp-faq__item.is-open .rp-faq__question i {
  transform: rotate(180deg);
}

.rp-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--rp-transition-slow);
}

.rp-faq__item.is-open .rp-faq__answer {
  max-height: 300px;
}

.rp-faq__answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.rp-faq__answer a {
  color: var(--rp-brand);
  font-weight: 600;
}

.rp-faq__visual img {
  border-radius: var(--rp-radius-xl);
  box-shadow: var(--rp-shadow-md);
}

/* ─── Pricing ─── */
.rp-pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.rp-pricing-toggle span {
  font-weight: 600;
  color: var(--rp-text-secondary);
  font-size: 0.9rem;
}

.rp-pricing-toggle span.is-active {
  color: var(--rp-brand);
}

.rp-pricing-toggle__switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--rp-border);
  border-radius: var(--rp-radius-pill);
  cursor: pointer;
  transition: background var(--rp-transition);
  border: none;
}

.rp-pricing-toggle__switch.is-annual {
  background: var(--rp-brand);
}

.rp-pricing-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--rp-shadow-xs);
  transition: transform var(--rp-transition);
}

.rp-pricing-toggle__switch.is-annual::after {
  transform: translateX(24px);
}

.rp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.rp-pricing-card {
  padding: 40px 32px;
  text-align: center;
  position: relative;
}

.rp-pricing-card--featured {
  border: 2px solid var(--rp-brand);
  box-shadow: var(--rp-shadow-brand);
}

.rp-pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.rp-pricing-card h4 {
  margin-bottom: 8px;
}

.rp-pricing-card__desc {
  font-size: 0.875rem;
  margin-bottom: 28px;
}

.rp-pricing-card__price {
  margin-bottom: 28px;
}

.rp-pricing-card__amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--rp-brand);
  letter-spacing: -0.03em;
}

.rp-pricing-card__amount--free {
  color: var(--rp-success);
}

.rp-pricing-card__period {
  display: block;
  font-size: 0.875rem;
  color: var(--rp-text-muted);
  margin-top: 4px;
}

.rp-pricing-card__features {
  text-align: left;
  margin-bottom: 32px;
}

.rp-pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--rp-text-secondary);
}

.rp-pricing-card__features li i {
  color: var(--rp-brand);
}

.rp-pricing-card .price-monthly,
.rp-pricing-card .price-annual {
  display: none;
}

.rp-pricing-card .price-monthly.is-visible,
.rp-pricing-card .price-annual.is-visible {
  display: block;
}

/* ─── CTA Banner ─── */
.rp-cta-banner {
  background: var(--rp-brand-gradient);
  border-radius: var(--rp-radius-2xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rp-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 50%);
}

.rp-cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.rp-cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  position: relative;
}

.rp-cta-banner .rp-btn {
  position: relative;
}

/* ─── Footer ─── */
.rp-footer {
  background: var(--rp-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.rp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rp-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.rp-footer__brand img {
  width: 44px;
  height: 44px;
}

.rp-footer__brand h5 {
  color: #fff;
  font-size: 1.2rem;
}

.rp-footer__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.rp-footer__social {
  display: flex;
  gap: 12px;
}

.rp-footer__social a {
  width: 44px;
  height: 44px;
  border-radius: var(--rp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  transition: transform var(--rp-transition);
}

.rp-footer__social a:hover {
  transform: translateY(-3px);
}

.rp-footer__social a--instagram { background: linear-gradient(135deg, #e4405f, #c13584); }
.rp-footer__social a--whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

.rp-footer h6 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.rp-footer__links li {
  margin-bottom: 12px;
}

.rp-footer__links a {
  font-size: 0.875rem;
  transition: color var(--rp-transition);
}

.rp-footer__links a:hover {
  color: #fff;
}

.rp-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.rp-footer__contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(100, 77, 220, 0.3);
  border-radius: var(--rp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.rp-footer__contact a:hover {
  color: #fff;
}

.rp-footer__bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

/* ─── Scroll to top ─── */
.rp-scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--rp-brand-gradient);
  color: #fff;
  border: none;
  border-radius: var(--rp-radius-md);
  box-shadow: var(--rp-shadow-brand);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--rp-transition);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.rp-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rp-scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--rp-shadow-brand-lg);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .rp-hero__grid,
  .rp-split,
  .rp-faq {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .rp-split--reverse .rp-split__visual {
    order: 0;
  }

  .rp-modules-grid {
    grid-template-columns: 1fr;
  }

  .rp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .rp-section {
    padding: 64px 0;
  }

  .rp-header__nav,
  .rp-header__actions .rp-btn--ghost {
    display: none;
  }

  .rp-header__menu-btn {
    display: flex;
  }

  .rp-hero {
    min-height: auto;
    padding-bottom: 64px;
  }

  .rp-hero__float-card {
    display: none;
  }

  .rp-mini-features {
    grid-template-columns: 1fr;
  }

  .rp-pricing-grid {
    grid-template-columns: 1fr;
  }

  .rp-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .rp-cta-banner {
    padding: 48px 28px;
  }
}

@media (max-width: 768px) {
  .rp-features-carousel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rp-features-carousel__nav {
    display: none;
  }

  .rp-features-carousel__viewport {
    margin: 0 -4px;
  }

  .rp-role-filter {
    flex-direction: column;
    gap: 8px;
  }

  .rp-role-filter__pills {
    width: 100%;
    justify-content: center;
  }
}

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

  .rp-role-filter__pill {
    flex: 1 1 auto;
    justify-content: center;
  }

  .rp-hero__stats {
    gap: 20px;
  }
}
