/**
 * Unwrapping RCS Messaging — Webinar Landing Page
 * Animated RCS message demos + conversion-focused layout
 */

.rcs-page {
  --rcs-brand: #122089;
  --rcs-brand2: #49316c;
  --rcs-accent: #1a73e8;
  --rcs-verified: #34a853;
  --rcs-bg0: #f4f7ff;
  --rcs-bg1: #ffffff;
  --rcs-surface: rgba(18, 32, 137, 0.04);
  --rcs-border: rgba(18, 32, 137, 0.10);
  --rcs-text: rgba(5, 15, 45, 0.92);
  --rcs-muted: rgba(5, 15, 45, 0.68);
  --rcs-radius: 18px;
  --rcs-shadow: 0 18px 60px rgba(3, 23, 78, 0.12);
  --rcs-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rcs-font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  font-family: var(--rcs-font);
  color: var(--rcs-text);
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(26, 115, 232, 0.10), transparent 60%),
    radial-gradient(800px 550px at 90% 20%, rgba(73, 49, 108, 0.08), transparent 62%),
    linear-gradient(180deg, var(--rcs-bg0), var(--rcs-bg1));
  overflow: hidden;
}

.rcs-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Hero ── */
.rcs-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
}

.rcs-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .rcs-hero { padding: 3.5rem 0 2.5rem; }
  .rcs-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.rcs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rcs-border);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-family: var(--rcs-font);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rcs-muted);
}

/* ── Heading typography (Fraunces) ── */
.rcs-page .rcs-h1,
.rcs-page .rcs-h2,
.rcs-page .rcs-speaker-name,
.rcs-page .rcs-register-card-title,
.rcs-page .rcs-reserve-panel h3,
.rcs-page .rcs-benefit strong,
.rcs-page .rcs-showcase-item strong,
.rcs-page .rcs-showcase-tagline {
  font-family: var(--rcs-font-heading);
  font-feature-settings: "ss01" 1, "liga" 1;
}

.rcs-h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 1rem 0 0.65rem;
  color: var(--rcs-brand);
}

.rcs-subhead {
  font-family: var(--rcs-font-heading);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  font-style: italic;
  color: var(--rcs-brand2);
  line-height: 1.45;
  max-width: 52ch;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.rcs-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rcs-brand), var(--rcs-accent));
  box-shadow: 0 0 0 5px rgba(26, 115, 232, 0.12);
  animation: rcsPulse 2.4s ease-in-out infinite;
}

@keyframes rcsPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.rcs-lead {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(5, 15, 45, 0.78);
  max-width: 58ch;
  margin: 0 0 1.25rem;
}

.rcs-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.rcs-meta-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: rgba(5, 15, 45, 0.82);
}

.rcs-meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(26, 115, 232, 0.08);
  border: 1px solid rgba(26, 115, 232, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.rcs-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rcs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--rcs-border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--rcs-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.rcs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(18, 32, 137, 0.12);
  color: var(--rcs-text);
  text-decoration: none;
}

.rcs-btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--rcs-brand), var(--rcs-brand2));
  box-shadow: 0 14px 40px rgba(18, 32, 137, 0.22);
}

.rcs-btn-primary:hover {
  color: #fff;
  box-shadow: 0 18px 50px rgba(18, 32, 137, 0.28);
}

/* ── Phone mockup ── */
.rcs-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rcs-phone {
  width: min(300px, 100%);
  border-radius: 36px;
  border: 3px solid #1a1a2e;
  background: #1a1a2e;
  box-shadow:
    var(--rcs-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  position: relative;
}

.rcs-phone-notch {
  width: 90px;
  height: 22px;
  background: #1a1a2e;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.rcs-phone-screen {
  background: #f8f9fa;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.rcs-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 1rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #444;
  background: #f8f9fa;
}

.rcs-phone-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
}

.rcs-phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rcs-brand), var(--rcs-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.rcs-phone-brand {
  flex: 1;
  min-width: 0;
}

.rcs-phone-brand-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rcs-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--rcs-verified);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 900;
}

.rcs-phone-brand-sub {
  font-size: 0.72rem;
  color: #5f6368;
}

.rcs-demo-viewport {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.rcs-demo-slide {
  position: absolute;
  inset: 0;
  padding: 0.85rem 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.rcs-demo-slide.rcs-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rcs-bubble {
  background: #fff;
  border-radius: 0 16px 16px 16px;
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #3c4043;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.65rem;
  max-width: 92%;
  animation: rcsBubbleIn 0.5s ease both;
}

.rcs-bubble-delay-1 { animation-delay: 0.15s; }
.rcs-bubble-delay-2 { animation-delay: 0.3s; }
.rcs-bubble-delay-3 { animation-delay: 0.45s; }

@keyframes rcsBubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rcs-rich-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  margin-bottom: 0.65rem;
  max-width: 95%;
  animation: rcsBubbleIn 0.5s ease both;
}

.rcs-rich-card-img {
  height: 110px;
  background: linear-gradient(135deg, var(--rcs-brand) 0%, var(--rcs-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
}

.rcs-rich-card-body {
  padding: 0.75rem 0.85rem;
}

.rcs-rich-card-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #202124;
  margin-bottom: 0.3rem;
}

.rcs-rich-card-desc {
  font-size: 0.76rem;
  color: #5f6368;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.rcs-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rcs-action-btn {
  display: block;
  text-align: center;
  padding: 0.55rem;
  border-radius: 20px;
  border: 1px solid var(--rcs-accent);
  color: var(--rcs-accent);
  font-weight: 600;
  font-size: 0.78rem;
  background: transparent;
}

.rcs-action-btn.rcs-action-primary {
  background: var(--rcs-accent);
  color: #fff;
  border-color: var(--rcs-accent);
}

.rcs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  animation: rcsBubbleIn 0.5s 0.35s ease both;
}

.rcs-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 18px;
  border: 1px solid #dadce0;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--rcs-accent);
}

.rcs-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.rcs-carousel::-webkit-scrollbar { display: none; }

.rcs-carousel-card {
  flex: 0 0 72%;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  animation: rcsBubbleIn 0.5s ease both;
}

.rcs-carousel-card:nth-child(2) { animation-delay: 0.2s; }
.rcs-carousel-card:nth-child(3) { animation-delay: 0.35s; }

.rcs-carousel-img {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.rcs-carousel-img--retail { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.rcs-carousel-img--bank { background: linear-gradient(135deg, #4834d4, #686de0); }
.rcs-carousel-img--health { background: linear-gradient(135deg, #22a6b3, #6ab04c); }

.rcs-carousel-body {
  padding: 0.55rem 0.65rem;
}

.rcs-carousel-title {
  font-weight: 700;
  font-size: 0.78rem;
  color: #202124;
}

.rcs-carousel-desc {
  font-size: 0.68rem;
  color: #5f6368;
  margin-top: 0.15rem;
}

.rcs-demo-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.rcs-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(18, 32, 137, 0.18);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rcs-demo-dot.rcs-active {
  background: var(--rcs-brand);
  transform: scale(1.2);
}

.rcs-demo-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rcs-muted);
}

/* ── Sections ── */
.rcs-section {
  padding: 3rem 0;
}

.rcs-section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--rcs-border);
  border-bottom: 1px solid var(--rcs-border);
}

.rcs-h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.55rem;
  color: var(--rcs-brand);
}

.rcs-h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rcs-brand), var(--rcs-accent));
  opacity: 0.85;
}

.rcs-h2.rcs-h2--plain::after,
.rcs-page h3.rcs-h2::after {
  display: none;
}

.rcs-h2--sm {
  font-size: clamp(1.2rem, 1.8vw, 1.35rem) !important;
  margin-bottom: 0.25rem !important;
}

.rcs-showcase-tagline {
  font-family: var(--rcs-font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--rcs-brand);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.rcs-card .rcs-h2::after {
  width: 2rem;
  margin-top: 0.45rem;
}

.rcs-section-header .rcs-h2::after {
  display: none;
}

.rcs-section-lede {
  color: var(--rcs-muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.rcs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .rcs-grid-2 { grid-template-columns: 1fr; }
}

.rcs-card {
  border-radius: var(--rcs-radius);
  border: 1px solid var(--rcs-border);
  background: rgba(255, 255, 255, 0.82);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 30px rgba(3, 23, 78, 0.06);
}

.rcs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rcs-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.6;
  color: rgba(5, 15, 45, 0.82);
}

.rcs-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rcs-brand), var(--rcs-accent));
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.rcs-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .rcs-benefits { grid-template-columns: 1fr; }
}

.rcs-benefit {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--rcs-border);
  background: rgba(255, 255, 255, 0.78);
}

.rcs-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(26, 115, 232, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rcs-benefit strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
  color: var(--rcs-brand);
}

.rcs-benefit span {
  font-size: 0.88rem;
  color: var(--rcs-muted);
  line-height: 1.55;
}

/* ── Demo showcase ── */
.rcs-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 992px) {
  .rcs-showcase { grid-template-columns: 1fr; }
}

.rcs-showcase-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rcs-showcase-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.rcs-showcase-item.rcs-highlight,
.rcs-showcase-item:hover {
  border-color: rgba(26, 115, 232, 0.22);
  background: rgba(26, 115, 232, 0.04);
}

.rcs-showcase-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rcs-brand), var(--rcs-accent));
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rcs-showcase-item strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
  color: rgba(5, 15, 45, 0.88);
}

.rcs-showcase-item span {
  font-size: 0.84rem;
  color: var(--rcs-muted);
  line-height: 1.5;
}

/* ── Speaker ── */
.rcs-speaker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--rcs-radius);
  border: 1px solid var(--rcs-border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--rcs-shadow);
}

@media (max-width: 520px) {
  .rcs-speaker { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

.rcs-speaker-avatar {
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rcs-brand), var(--rcs-brand2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  box-shadow: 0 8px 30px rgba(18, 32, 137, 0.25);
}

.rcs-speaker-name {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--rcs-brand);
  letter-spacing: -0.01em;
}

.rcs-speaker-title {
  font-weight: 600;
  color: var(--rcs-muted);
  margin: 0 0 0.75rem;
}

.rcs-speaker-bio {
  line-height: 1.7;
  color: rgba(5, 15, 45, 0.78);
  margin: 0;
}

/* ── Simplified Google Form registration ── */
.rcs-register-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 992px) {
  .rcs-register-simple { grid-template-columns: 1fr; }
}

.rcs-register-card {
  border-radius: var(--rcs-radius);
  border: 1px solid var(--rcs-border);
  background: rgba(255, 255, 255, 0.92);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--rcs-shadow);
  text-align: center;
}

.rcs-register-card-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--rcs-brand);
  letter-spacing: -0.01em;
}

.rcs-register-card-lede {
  margin: 0 0 1rem;
  color: var(--rcs-muted);
  line-height: 1.7;
}

.rcs-register-fields {
  text-align: left;
  max-width: 280px;
  margin: 0 auto 1.25rem;
}

.rcs-register-btn {
  width: 100%;
  max-width: 320px;
  font-size: 1.02rem;
  padding: 1rem 1.5rem;
}

.rcs-form-note {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--rcs-muted);
  line-height: 1.6;
}

.rcs-reserve-panel {
  border-radius: var(--rcs-radius);
  border: 1px solid var(--rcs-border);
  background: linear-gradient(135deg, rgba(18, 32, 137, 0.06), rgba(26, 115, 232, 0.04));
  padding: 1.5rem;
}

.rcs-reserve-panel h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--rcs-brand);
  letter-spacing: -0.01em;
}

.rcs-reserve-panel p {
  line-height: 1.7;
  color: var(--rcs-muted);
  margin: 0 0 1.25rem;
}

/* ── Scroll reveal ── */
.rcs-reveal { opacity: 1; transform: none; }
.rcs-js .rcs-reveal { opacity: 0; transform: translateY(14px); }
.rcs-js .rcs-reveal.rcs-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

@media (prefers-reduced-motion: reduce) {
  .rcs-eyebrow-dot,
  .rcs-bubble,
  .rcs-rich-card,
  .rcs-carousel-card,
  .rcs-chips { animation: none !important; }
  .rcs-demo-slide { transition: none !important; }
  .rcs-reveal { opacity: 1 !important; transform: none !important; }
}
