/* ───────── Site polish ───────── */

/* Scroll-reveal. The JS adds .in when the element crosses the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Soft floating orb drift */
.orb { will-change: transform; animation: orb-float 14s ease-in-out infinite; }
.orb-2 { animation-duration: 10s; animation-direction: reverse; }
@keyframes orb-float {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(0,-28px,0) scale(1.05); }
}

/* Slow ping (hero live-dot) */
.animate-ping-slow { animation: ping-slow 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping-slow {
  0%   { box-shadow: 0 0 0 0 rgba(231,14,83,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(231,14,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,14,83,0); }
}

/* Slow bounce (scroll hint) */
.animate-bounce-slow { animation: bounce-slow 2.2s ease-in-out infinite; }
@keyframes bounce-slow {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(6px); }
}

/* Marquee feature band */
.marquee {
  animation: marquee 36s linear infinite;
  width: max-content;
}
@keyframes marquee {
  /* -50% lands on the start of the duplicated set, then we subtract half a
     flex `gap` (gap-10 = 2.5rem) so the wrap point is seamless instead of
     glitching back through the gap width on each cycle. */
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 1.25rem)); }
}

/* Product cards */
.product-card { display: block; text-align: left; }
.product-card .product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.product-card:hover .product-media {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(231, 14, 83, 0.35);
}
.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #fff;
  color: #E70E53;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.product-badge--sale { background: #E70E53; color: #fff; }
.product-badge--hot  { background: #111; color: #fff; }

/* Feature / income / step / testimonial cards — consistent lift */
.feature-card,
.income-card,
.step-card,
.testimonial-card,
.contact-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 18px;
  padding: 28px;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.feature-card:hover,
.income-card:hover,
.step-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.18);
  border-color: rgba(231, 14, 83, 0.25);
}
.contact-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.12);
  text-align: left;
  text-decoration: none;
  color: #fff;
  display: block;
}
.contact-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(231, 14, 83, 0.5);
}

/* Slight scroll padding so anchor jumps clear the sticky nav */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

/* Brand wordmark — matches Faberlic's thin-sans wordmark. Transparent bg so
   it adapts to any section colour. Montserrat Light (300) in all caps with
   generous letter-spacing gives the clean, fashion-brand feel. */
.brand-wordmark {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: #E70E53;
  text-decoration: none;
  line-height: 1;
  padding: 4px 0;
  transition: color 160ms ease, opacity 160ms ease;
}
.brand-wordmark:hover { opacity: .85; }
.brand-wordmark--light { color: #fff; font-size: 20px; }

/* ─── Reusable primitives ─────────────────────────────────── */

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #FEECF1;
  color: #E70E53;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(231, 14, 83, 0.15);
}

/* ─── Workflow timeline ───────────────────────────────────── */

.timeline { position: relative; }
.timeline-line {
  /* Sits at the vertical centre of the 52px dots (top 0, height 52 → centre 26).
     Left/right pulled in so the dashes don't start/end behind dots. */
  position: absolute;
  top: 25px;
  left: 12.5%;
  right: 12.5%;
  border-top: 2px dashed rgba(231, 14, 83, 0.35);
  z-index: 0;
  pointer-events: none;
}
.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .timeline-step { align-items: center; }
  .timeline-step .timeline-card { text-align: left; }
}
.timeline-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #E70E53, #B3083F);
  box-shadow: 0 6px 16px -6px rgba(231, 14, 83, 0.5);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.timeline-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 22px 20px;
  width: 100%;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.timeline-step:hover .timeline-card {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(231, 14, 83, 0.25);
  border-color: rgba(231, 14, 83, 0.25);
}
.timeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FEECF1;
  color: #E70E53;
}
.timeline-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #E70E53;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 160ms ease;
}
.timeline-cta:hover { background: #B3083F; }

/* ─── Bento grid ──────────────────────────────────────────── */

.bento {
  border-radius: 24px;
  padding: 28px;
  transition: transform 250ms ease, box-shadow 250ms ease;
  min-height: 220px;
}
.bento:hover { transform: translateY(-4px); }
.bento--primary {
  background: linear-gradient(135deg, #E70E53 0%, #B3083F 100%);
  color: #fff;
  box-shadow: 0 24px 60px -24px rgba(231, 14, 83, 0.5);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento--primary:hover { box-shadow: 0 28px 70px -24px rgba(231, 14, 83, 0.65); }
.bento--light {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
}
.bento--light:hover {
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.15);
  border-color: rgba(231, 14, 83, 0.25);
}
.bento-kicker {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.bento--primary .bento-kicker { color: rgba(255,255,255,0.85); }
.bento--light   .bento-kicker { color: #E70E53; }
.bento-progress {
  width: 0;
  animation: bento-fill 1600ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 400ms;
  box-shadow: 0 0 14px rgba(255,255,255,0.4);
}
@keyframes bento-fill { to { width: 100%; } }

/* ─── Phone mock (how-to-register) ────────────────────────── */

.phone-mock {
  position: relative;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  background: linear-gradient(180deg, #0e0e10, #1a1a1d);
  padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.4), 0 0 0 2px rgba(255,255,255,0.08);
}
.phone-mock-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #0a0a0a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-mock-screen {
  height: 100%;
  background: #fff;
  border-radius: 28px;
  padding: 34px 20px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-screen-header {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.phone-form-row { display: flex; flex-direction: column; gap: 4px; }
.phone-form-row label {
  font-size: 9px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.phone-field {
  padding: 8px 10px;
  border-radius: 6px;
  background: #f6f7fb;
  font-size: 11px;
  color: #111;
  border: 1px solid transparent;
}
.phone-field--primary {
  background: #FEECF1;
  color: #E70E53;
  font-weight: 600;
  border-color: rgba(231, 14, 83, 0.25);
}
.phone-submit {
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
  border: 0;
  background: #E70E53;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.phone-meta {
  text-align: center;
  font-size: 9px;
  color: #6b6b6b;
  margin-top: 6px;
}
.floating-tag {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,0.15);
  color: #111;
  animation: orb-float 10s ease-in-out infinite;
}
.step-bullet {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: #E70E53;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(231, 14, 83, 0.15);
  box-shadow: 0 4px 12px -6px rgba(231, 14, 83, 0.2);
}

/* ─── App download visual (phone frame + floating badges) ─── */

.app-visual {
  position: relative;
  width: 100%;
  max-width: 360px;        /* cap width → phone-shape, not wide landscape */
}
.app-visual-halo {
  position: absolute;
  inset: -24px;
  border-radius: 48px;
  background: radial-gradient(closest-side, rgba(231, 14, 83, 0.18), transparent 70%);
  filter: blur(28px);
  z-index: 0;
}
.app-visual-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 9 / 16;    /* phone proportions — lock the frame */
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.35);
  background: #111;
}
.app-visual-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-badge {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.22);
  z-index: 3;
  animation: orb-float 12s ease-in-out infinite;
}
/* All badges anchor to the constrained .app-visual, so offsets are small
   and predictable regardless of viewport width. */
.app-badge--tl { top: 24px;    left: -40px; }
.app-badge--br {
  bottom: 30px; right: -40px;
  background: linear-gradient(135deg, #E70E53, #B3083F);
  color: #fff;
  border: 0;
  animation-delay: -3s;
}
.app-badge--bl {
  bottom: 90px; left: -30px;
  padding: 10px 14px;
  animation-delay: -6s;
}
@media (max-width: 900px) {
  .app-badge--tl { top: 12px; left: 12px; }
  .app-badge--br { bottom: 12px; right: 12px; }
  .app-badge--bl { display: none; }
}

/* ─── Income sources + hero calculator ────────────────────── */

.income-src {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.income-src:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -24px rgba(231, 14, 83, 0.3);
  border-color: rgba(231, 14, 83, 0.3);
}
.income-src-num {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  background: linear-gradient(135deg, #E70E53, #B3083F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.income-src-title {
  margin-top: 14px;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0E0E10;
}
.income-src-body {
  margin-top: 8px;
  font-size: 14px;
  color: #5E5E66;
  line-height: 1.6;
}
.income-src-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #FEECF1;
  color: #E70E53;
}

.calc-hero {
  background: #fff;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 30px 80px -30px rgba(231, 14, 83, 0.3);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}
.calc-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 24px;
}
.calc-hero-left { padding: 8px; }
.calc-hero-equals {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 900;
  font-size: 42px;
  color: rgba(14, 14, 16, 0.2);
  text-align: center;
}
.calc-hero-right {
  background: linear-gradient(135deg, #E70E53, #B3083F);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  text-align: left;
}
.calc-sign {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: rgba(14, 14, 16, 0.3);
}
@media (max-width: 768px) {
  .calc-hero-inner { grid-template-columns: 1fr; }
  .calc-hero-equals { font-size: 28px; }
}


/* ───────── Chat Widget ───────── */

.fc-reset, .fc-reset * { box-sizing: border-box; }

/* Pre-chat tooltip bubble. Positioned above the launcher, points at it.
   Dismisses on click or when scroll passes the hero. */
.fc-tooltip {
  position: fixed;
  right: 24px;
  bottom: 94px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 14px 40px 14px 18px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.22);
  max-width: 260px;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 400ms cubic-bezier(.2,.7,.2,1),
              transform 400ms cubic-bezier(.2,.7,.2,1);
  z-index: 99;
  cursor: pointer;
}
.fc-tooltip::after {
  /* little tail pointing down-right toward the launcher */
  content: '';
  position: absolute;
  right: 22px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transform: rotate(45deg);
}
.fc-tooltip--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: fc-tooltip-nudge 2.2s ease-in-out 800ms 2;
}
@keyframes fc-tooltip-nudge {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-4px) scale(1); }
}
.fc-tooltip-title {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #0E0E10;
}
.fc-tooltip-text {
  margin-top: 4px;
  font-size: 12px;
  color: #5E5E66;
  line-height: 1.4;
}
.fc-tooltip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
  padding: 0;
}
.fc-tooltip-close:hover { background: #f3f4f6; color: #111; }

@media (max-width: 640px) {
  .fc-tooltip { right: 16px; bottom: 88px; max-width: 220px; padding-right: 36px; }
}

.fc-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background: #E70E53;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E70E53 0%, #B3083F 100%);
  box-shadow:
    0 10px 26px -8px rgba(231, 14, 83, 0.5),
    0 2px 6px -1px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  z-index: 100;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), box-shadow 300ms ease;
  border: 0;
}
.fc-launcher::before,
.fc-launcher::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid #E70E53;
  opacity: 0.55;
  animation: fc-ring 2.6s cubic-bezier(.2,.7,.2,1) infinite;
  pointer-events: none;
}
.fc-launcher::after { animation-delay: 1.3s; }
.fc-launcher:hover {
  transform: scale(1.06);
  box-shadow:
    0 14px 32px -8px rgba(231, 14, 83, 0.62),
    0 3px 10px -2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.fc-launcher:hover::before,
.fc-launcher:hover::after { animation-play-state: paused; opacity: 0; }

@keyframes fc-ring {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(1.6);  opacity: 0;    }
}

.fc-panel {
  position: fixed;
  right: 24px;
  bottom: 104px;
  width: 420px;
  height: 640px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.25),
    0 8px 20px -6px rgba(231, 14, 83, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  font-family: Inter, system-ui, sans-serif;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 260ms ease;
}
.fc-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .fc-panel {
    right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;       /* fallback for older browsers */
    height: 100dvh;      /* dynamic vh — shrinks with the URL bar so the close button stays reachable */
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
}

/* Prevent background scroll while the chat panel is open on mobile, otherwise
   touch can get trapped scrolling the page beneath and the panel feels frozen. */
body.fc-no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* ── Header with agent avatar + live status ──────────────── */

.fc-header {
  position: relative;
  background: linear-gradient(135deg, #E70E53 0%, #B3083F 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  overflow: hidden;
}
.fc-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.22), transparent 40%),
    radial-gradient(circle at 90% 120%, rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
}
.fc-header > * { position: relative; z-index: 1; }
.fc-header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fc-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.fc-header-meta { display: flex; flex-direction: column; min-width: 0; }
.fc-header-title {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.fc-header-status {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.fc-header-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: fc-status-pulse 2s ease-in-out infinite;
}
@keyframes fc-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}
.fc-header-close {
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
  flex-shrink: 0;
}
.fc-header-close:hover { background: rgba(255, 255, 255, 0.22); }

.fc-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px;
  background:
    linear-gradient(180deg, #fafafa 0%, #f5f6f9 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(231, 14, 83, 0.3) transparent;
}
.fc-body::-webkit-scrollbar { width: 6px; }
.fc-body::-webkit-scrollbar-thumb {
  background: rgba(231, 14, 83, 0.25);
  border-radius: 3px;
}
.fc-body::-webkit-scrollbar-thumb:hover { background: rgba(231, 14, 83, 0.5); }
.fc-body > * { flex: 0 0 auto; }

/* Bot messages now sit in a row with a small agent avatar on the left.
   Keeps the conversation looking "attended to" rather than wall-of-text. */
.fc-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; }
.fc-row-bot { align-self: flex-start; }

.fc-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #E70E53 0%, #B3083F 100%);
  color: #fff;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px -2px rgba(231, 14, 83, 0.4);
  align-self: flex-end;
  margin-bottom: 2px;
}

.fc-bubble {
  max-width: 100%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.fc-bubble.bot {
  background: #fff;
  color: #0E0E10;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.08);
  border-bottom-left-radius: 6px;
}
.fc-bubble.user {
  background: linear-gradient(135deg, #E70E53 0%, #B3083F 100%);
  color: #fff;
  align-self: flex-end;
  max-width: 82%;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 12px -4px rgba(231, 14, 83, 0.4);
}

.fc-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  max-width: 92%;
  margin-left: 36px; /* aligns with bot bubbles (avatar width + gap) */
}
.fc-btn {
  background: #fff;
  border: 1px solid rgba(231, 14, 83, 0.3);
  color: #E70E53;
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 180ms cubic-bezier(.2,.7,.2,1);
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.fc-btn:hover {
  background: #E70E53;
  color: #fff;
  border-color: #E70E53;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(231, 14, 83, 0.5);
}
.fc-btn:active { transform: translateY(0); }

.fc-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
/* Use contain + neutral bg so tall/wide infographics aren't cropped.
   min-height guarantees slow-loading or oddly-shaped images have visible space. */
.fc-card img {
  width: 100%;
  height: auto;
  min-height: 160px;
  max-height: 360px;
  object-fit: contain;
  display: block;
  background: #FAF8F6;
}
.fc-card-body { padding: 12px 14px; }
.fc-card-title { font-weight: 600; font-size: 15px; }
.fc-card-sub   { font-size: 13px; color: #6B6B6B; margin-top: 6px; white-space: pre-wrap; line-height: 1.55; }
.fc-card-btns  { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px; }

.fc-video {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}
.fc-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  display: block;
  border: 0;
}

.fc-btns { max-width: 100%; }
.fc-bubble { max-width: 90%; }

.fc-typing {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.08);
  padding: 11px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #5E5E66;
  margin-left: 36px;
}
.fc-typing-label { font-weight: 500; letter-spacing: 0.01em; }
.fc-typing .fc-typing-dot {
  width: 6px; height: 6px;
  background: #E70E53;
  border-radius: 9999px;
  animation: fc-bounce 1.1s infinite ease-in-out both;
}
.fc-typing .fc-typing-dot:nth-child(3) { animation-delay: 0.15s; }
.fc-typing .fc-typing-dot:nth-child(4) { animation-delay: 0.30s; }

@keyframes fc-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40%           { transform: scale(1);    opacity: 1;   }
}

.fc-hint {
  padding: 9px 14px;
  font-size: 11px;
  color: #5E5E66;
  background: linear-gradient(180deg, #FFF5F9 0%, #FEECF1 100%);
  border-top: 1px solid rgba(231, 14, 83, 0.08);
  text-align: center;
  flex: 0 0 auto;
  letter-spacing: 0.01em;
}

.fc-input {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  padding: 12px;
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.fc-input input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  border-radius: 9999px;
  padding: 11px 16px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  color: #0E0E10;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.fc-input input::placeholder { color: #9ca3af; }
.fc-input input:focus {
  border-color: rgba(231, 14, 83, 0.4);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(231, 14, 83, 0.08);
}
.fc-input button {
  background: linear-gradient(135deg, #E70E53 0%, #B3083F 100%);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 4px 12px -4px rgba(231, 14, 83, 0.4);
}
.fc-input button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(231, 14, 83, 0.5);
}
.fc-input button:active:not(:disabled) { transform: translateY(0); }
.fc-input button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Lock screen ─────────────────────────────────────────── */
/* Sits above the body/hint/form so the chat is gated until
   the visitor enters the referral code. Hidden once unlocked. */

.fc-lock {
  position: absolute;
  inset: 70px 0 0 0; /* sit below the header so close button stays clickable */
  background:
    radial-gradient(circle at 20% 0%, rgba(231, 14, 83, 0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(179, 8, 63, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fdf5f8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 28px 32px;
  text-align: center;
  z-index: 5;
  animation: fc-lock-in 360ms cubic-bezier(.2,.7,.2,1);
}
@keyframes fc-lock-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.fc-lock--leaving {
  animation: fc-lock-out 360ms cubic-bezier(.2,.7,.2,1) forwards;
  pointer-events: none;
}
@keyframes fc-lock-out {
  to { opacity: 0; transform: translateY(-6px) scale(0.985); }
}

.fc-lock-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #E70E53 0%, #B3083F 100%);
  box-shadow:
    0 18px 40px -14px rgba(231, 14, 83, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative;
}
.fc-lock-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  border: 1px solid rgba(231, 14, 83, 0.25);
  animation: fc-lock-ring 2.4s ease-in-out infinite;
}
@keyframes fc-lock-ring {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.08); opacity: 0;    }
}

.fc-lock-title {
  margin-top: 18px;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0E0E10;
  letter-spacing: 0.01em;
}
.fc-lock-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #5E5E66;
  line-height: 1.55;
  max-width: 300px;
}

.fc-lock-form {
  margin-top: 20px;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fc-lock-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  color: #0E0E10;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -moz-appearance: textfield;
}
.fc-lock-input::-webkit-outer-spin-button,
.fc-lock-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.fc-lock-input::placeholder {
  color: #c2bcc0;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.fc-lock-input:focus {
  border-color: rgba(231, 14, 83, 0.5);
  box-shadow: 0 0 0 4px rgba(231, 14, 83, 0.12);
}
.fc-lock-input--error {
  border-color: #E70E53;
  animation: fc-lock-shake 380ms cubic-bezier(.36,.07,.19,.97);
}
@keyframes fc-lock-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

.fc-lock-submit {
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #E70E53 0%, #B3083F 100%);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px -8px rgba(231, 14, 83, 0.55);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.fc-lock-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(231, 14, 83, 0.65); }
.fc-lock-submit:active { transform: translateY(0); }

.fc-lock-error {
  min-height: 16px;
  font-size: 12px;
  color: #B3083F;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.fc-lock-hint {
  margin-top: 14px;
  font-size: 11px;
  color: #8a8a92;
  line-height: 1.5;
  max-width: 260px;
}
.fc-lock-hint b { color: #E70E53; font-weight: 600; }
