/* ===== Base / Reset ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: #0a0f1a;
  background: #f7f9fc;
  line-height: 1.5;
}

/* Palette */
:root{
  --rbc-blue: #0033A0;
  --rbc-gold: #FDB511;
  --nice-ink: #111111;
  --ink-50: #6b7280;
  --bg-card: #ffffff;
  --bg-soft: #eef3fb;
  --border: #e6e9ef;
  --shadow: 0 8px 24px rgba(0,0,0,.06);
  --radius: 16px;
}

/* Utilities */
.container { width: min(1100px, 92%); margin: 0 auto; }
.notice { background: #fffbe6; border: 1px solid #ffe58f; padding: 12px 14px; border-radius: 10px; font-size: 14px; }

/* ===== Sticky Header ===== */
.header-light { background: #ffffff; color: #0a0f1a; border-bottom: 1px solid var(--border); }
.sticky { position: sticky; top: 0; z-index: 1000; backdrop-filter: saturate(120%) blur(6px); }
.header-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px 0; }
.brand-left { display: flex; align-items: center; gap: 12px; }
.logo { width: 48px; height: auto; object-fit: contain; display: block; }
.main-nav { display: flex; gap: 18px; align-items: center; justify-content: flex-end; }
.main-nav a { color: #0a0f1a; text-decoration: none; font-size: 14px; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ===== Hero with watermark + geometry ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--rbc-blue) 0%, #0055cc 100%);
  color: #fff;
  text-align: center;
  padding: 72px 20px 64px;
  overflow: hidden;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(26px, 5vw, 42px); margin: 0 0 16px; font-weight: 700; }
.hero .sub { font-size: clamp(16px, 2.5vw, 20px); margin: 0 0 28px; line-height: 1.6; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.btn { padding: 10px 20px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn-primary { background: var(--rbc-gold); color: #000; }
.btn-primary:hover { background: #ffcc33; }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero .note { font-size: 13px; opacity: .85; margin: 0; }

/* RBC lion watermark */
.hero::before {
  content: "";
  position: absolute; right: -40px; bottom: -20px;
  width: 360px; height: 360px;
  background: url("https://cdn.freebiesupply.com/logos/large/2x/rbc-4-logo-png-transparent.png") no-repeat center / contain;
  opacity: 0.10; filter: blur(1px); transform: rotate(6deg); z-index: 1;
}
/* NiCE geometric patterns */
/* Replace your existing .hero::after with this */
.hero::after {
  content: "";
  position: absolute;
  left: -80px;              /* nudge further left if you want less overlap */
  top: -60px;
  width: 520px;             /* scale the watermark size here */
  height: 520px;
  background: url("https://d7umqicpi7263.cloudfront.net/img/product/7b246177-126b-43dc-85ff-3890b7399a89.com/b1e8a4a8c24142d77e09d7d7234a6516")
              no-repeat center / contain;
  opacity: 0.10;            /* overall fade */
  filter: blur(0.5px) saturate(110%);  /* keep it soft */
  transform: rotate(-6deg); /* tiny tilt to match the RBC mark on the right */
  mix-blend-mode: normal;   /* change to 'soft-light' if you want extra subtlety */
  z-index: 1;
}


/* ===== Sections ===== */
.section { padding: 32px 0; }
.section-compact { padding: 16px 0 !important; }
.section h2 { margin: 0 0 16px; font-size: clamp(20px, 2.2vw, 26px); color: var(--nice-ink); }
.centered { text-align: center; }

/* ===== Features Grid ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.feature img { width: 52px; height: 52px; margin: 0 auto 10px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--ink-50); font-size: 14px; }

/* ===== How-to Steps ===== */
#how .steps { margin: 0 auto; padding-left: 18px; max-width: 820px; }
#how .steps li { margin: 6px 0; }

/* ===== Flows ===== */
.flows-wrap { max-width: 880px; margin: 0; } /* left aligned inside .container */
.flows-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  overflow: hidden;
}
.flows-list {
  border-right: 1px solid var(--border);
  padding: 12px;
  max-height: 560px;
  overflow-y: auto;
}
.flow-group + .flow-group { margin-top: 12px; }
.flow-group h4 {
  margin: 6px 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--rbc-blue);
}
.flow-item {
  background: #f6f8fe;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.flow-item:hover { background: #eef3fb; }
.flow-item.active {
  border-color: var(--rbc-blue);
  box-shadow: 0 0 0 2px rgba(0,51,160,.12) inset;
  background: #eaf1ff;
}
.flows-content {
  padding: 14px 16px;
  max-height: 560px;
  display: grid;
  grid-template-rows: auto auto 1fr;
}
#flow-title { margin: 0 0 2px; font-size: 18px; font-weight: 700; }
#flow-meta  { margin: 0 0 12px; color: var(--ink-50); font-size: 13px; }

/* Chat bubbles */
.flow-chat {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  overflow-y: auto;
}
.bubble-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}
.bubble-role { font-size: 12px; color: var(--ink-50); padding-top: 6px; }
.bubble {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
}
.bubble-row.va .bubble { background: rgba(0,51,160,.06); border-color: rgba(0,51,160,.18); }
.bubble-row.customer .bubble { background: #fff; }

/* ===== Pill + Sparkle Image Callout (overlapping badge) ===== */
.widget-callout{
  position: fixed;
  right: 50px;
  bottom: 50px;
  z-index: 2147483000;  /* above third-party widgets */
  pointer-events: auto; /* allow hover for animation speed-up */
  cursor: default;
}
.callout-pill{
  position: relative;   /* anchor for overlapping badge */
  display: inline-block;
  background: #ffffff;
  color: #0a0f1a;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: bounceTogether 2.6s ease-in-out infinite;
  will-change: transform;
}
.callout-badge{
  position: absolute;
  top: -8px;            /* overlap pill’s top-right corner */
  right: -8px;
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;   /* soften raster edges */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
  animation: bounceTogether 2.6s ease-in-out infinite;
  will-change: transform;
}
/* Hover: speed up + subtle lift (both move together) */
.widget-callout:hover .callout-pill,
.widget-callout:hover .callout-badge{
  animation-duration: 1.6s;
  transform: translateY(-3px) scale(1.02);
}
/* Shared motion */
@keyframes bounceTogether{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce){
  .callout-pill, .callout-badge{
    animation: none !important;
    transform: none !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1100px){ .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px){
  .flows-wrap { max-width: 100%; }
  .flows-card { grid-template-columns: 1fr; }
  .flows-content { max-height: unset; }
  .flows-list { max-height: 240px; }
}
@media (max-width: 640px){
  .widget-callout { display: none; } /* hide the nudge on small screens */
}
@media (max-width: 600px){
  .brand-left .logo { width: 42px; }
  .feature { padding: 14px; }
  .feature img { width: 44px; height: 44px; }
  .bubble-row { grid-template-columns: 90px 1fr; }
}
/* ===== Contact Section ===== */
.contact-section {
  padding: 40px 0 20px;
  background: #f0f3fa;
  border-top: 1px solid var(--border);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-pic {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--rbc-blue);
  object-fit: cover;
  flex-shrink: 0;
}
.contact-text h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--nice-ink);
}
.contact-text .title {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--rbc-blue);
  font-weight: 600;
}
.contact-text .note {
  margin: 0 8px 12px 0;
  font-size: 14px;
  color: var(--ink-50);
}
.contact-text a {
  color: var(--rbc-blue);
  font-weight: 600;
  text-decoration: none;
}
.contact-text a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 14px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-50);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;                 /* behind everything */
  pointer-events: none;

  /* Layered: soft radial blooms + faint grid lines */
  background:
    radial-gradient(1000px 600px at 80% -20%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(900px 540px at -10% 115%, rgba(0,51,160,0.06), transparent 60%),
    repeating-linear-gradient(0deg,
      rgba(10,15,26,0.03), rgba(10,15,26,0.03) 1px,
      transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg,
      rgba(10,15,26,0.03), rgba(10,15,26,0.03) 1px,
      transparent 1px, transparent 24px);
}

/* (Optional) dial the intensity */
@media (prefers-color-scheme: light) {
  body::before {
    opacity: 0.9;              /* 0.7–1.0; lower = lighter */
  }
}
/* ===== Announcement Section ===== */
.announcement-section {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

/* Background texture behind announcement */
.announcement-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(800px 500px at 80% 20%, rgba(255,255,255,0.08), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(0,51,160,0.05), transparent 70%),
    repeating-linear-gradient(0deg,
      rgba(10,15,26,0.03), rgba(10,15,26,0.03) 1px,
      transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg,
      rgba(10,15,26,0.03), rgba(10,15,26,0.03) 1px,
      transparent 1px, transparent 28px);
}

.announcement-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92); /* subtle card to make text pop */
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.announcement-img {
  width: 120px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.announcement-text h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.announcement-text h3 a {
  color: var(--rbc-blue);
  text-decoration: none;
}
.announcement-text h3 a:hover {
  text-decoration: underline;
}
.announcement-text p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-50);
  line-height: 1.5;
}
/* ===== How to Use This Demo (full CSS) ===== */
.how-to {
 
  border-top: 1px solid var(--border);
  padding: 50px 0;
}

.how-to h2 {
  text-align: center;
  margin: 0 0 24px;
  font-size: 24px;
  color: var(--nice-ink);
}

/* Constrain width to match Key Capabilities */
.how-to .container-narrow {
  max-width: 900px;      /* adjust to your capabilities width if different */
  margin: 0 auto;
}

/* Two cards side-by-side */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;   /* equal height appearance */
}

/* Card */
.how-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

/* Header with icon */
.how-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.how-icon {
  font-size: 22px;         /* emoji size */
  line-height: 1;
  color: var(--rbc-blue);
  flex-shrink: 0;
}

.how-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--rbc-blue);
}

/* Steps */
.how-steps {
  margin: 0;
  padding-left: 20px;      /* ol bullet indent */
  font-size: 15px;
  color: var(--ink-75);
}

.how-steps li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Subtle hover polish */
.how-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transform: translateY(-1px);
  transition: box-shadow .2s ease, transform .2s ease;
}

/* Responsive: stack the two cards on narrow screens */
@media (max-width: 860px){
  .how-grid {
    grid-template-columns: 1fr;
  }
}

/* Inside-card hero image */
.announcement-hero {
  text-align: center;
  margin-top: 20px;
}

.announcement-hero img {
  max-width: 70%;   /* half size */
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
