*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;900&display=swap');

/* --- BASELINE NORMALIZATION (must match prod) --- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; }

/* ===========================================================
   GLOBAL FONT IMPORTS
=========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;900&display=swap');

/* === PROD PARITY PATCH (only what your dumps show is wrong) === */

/* 1) Nav CTA font (was Arial in harness) */
/* === NAV CTA PARITY (match prod: line-height normal) === */
.rev-nav-cta{
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;

  -webkit-appearance: none !important;
  appearance: none !important;
  border: 0 !important;

  height: 37px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;

  line-height: normal !important;   /* <-- match prod */
  display: inline-flex !important;  /* prevents browser button weirdness */
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

/* ===========================================================
   FIX DIVI WRAPPERS FROM BREAKING FLEX / WIDTH / STICKY
=========================================================== */
.et_pb_section .et_pb_code,
.et_pb_section .et_pb_code_inner,
.et_pb_code,
.et_pb_code_inner {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.et_pb_code_inner > * {
  width: auto !important;
  max-width: none !important;
}

/* Parent containers may not clip sticky */
.et_pb_section, 
.et_pb_row, 
.et_pb_column, 
.et_builder_inner_content, 
#rev-landing {
  overflow: visible !important;
}

/* ===========================================================
   PAGE WRAPPER
=========================================================== */
#rev-landing {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}

/* ===========================================================
   STICKY NAV BAR
=========================================================== */
.rev-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 999999 !important;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.rev-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.rev-nav-logo img {
  height: 32px;
  width: auto !important;
  display: block;
}

/* RIGHT SIDE GROUP */
.rev-nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

/* DESKTOP LINKS */
.rev-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.rev-nav-links a {
  font-size: 15px;
  color: #111827;
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s ease;
}

.rev-nav-links a:hover {
  opacity: 0.6;
}

/* CTA BUTTON (always visible) */
.rev-nav-cta {
  background: #202020;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .2s ease, transform .1s ease;
  white-space: nowrap;
}

.rev-nav-cta:hover { opacity: 0.85; }
.rev-nav-cta:active { transform: scale(0.97); }

/* MOBILE CLEAN MODE — HIDE LINKS / KEEP CTA */
@media (max-width: 900px) {
  .rev-nav-links {
    display: none !important;   /* hide menu links only */
  }

  .rev-nav-cta {
    display: block !important;  /* CTA stays visible */
  }

  .rev-nav-right {
    gap: 0 !important;          /* tighter right group */
  }
}

/* ===========================================================
   HERO SECTION
=========================================================== */
.rev-hero {
 background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}

/* 2-COLUMN LAYOUT */
.rev-2col-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.rev-2col-left,
.rev-2col-right {
  flex: 1 1 50%;
  max-width: 50%;
}

.rev-2col-right {
  display: flex;
  justify-content: center;
}

.rev-2col-left {
  max-width: 600px;
}

/* Tablet stack */
@media (max-width: 980px) {
  .rev-2col-section {
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 30px 20px;
  }
  .rev-2col-left,
  .rev-2col-right {
    max-width: 100%;
  }
}

/* Mobile padding */
@media (max-width: 640px) {
  .rev-2col-section {
    padding: 24px 16px 34px;
    gap: 20px;
  }
}

/* ==========================================
   LEFT COLUMN — HEADLINE + CTA + TRUSTPILOT
========================================== */
.rev-headline-block {
  max-width: 650px;
  margin: 0 auto 20px;
  font-family: "Inter", system-ui, sans-serif;
  text-align: left;
}

/* ==========================================
   STRIPE-STYLE GRADIENT PILL
   (Compact Size + Indigo Pulse)
========================================== */
.rev-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px; 
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  background: white;
  border: 1px solid transparent;
background-image:
  linear-gradient(#F5F3FF, #F5F3FF),
  linear-gradient(90deg, #2563EB, #9333EA, #F59E0B);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  font-family: inherit;
  outline: none;
}

/* Hover: Lift & Shine */
.rev-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.12);
}

/* THE PULSE DOT (Low-Key Indigo) */
.rev-pill-dot{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}



/* The Pulse Animation (Subtle Indigo) */
.rev-pill-dot::after {
  content: "";
  position: absolute;
  inset: -3px; /* Tighter ring */
  border-radius: 50%;
  border: 1px solid #4338ca;
  opacity: 0;
  animation: pillPulse 2.5s infinite;
}
.rev-pill-dot::after { display: none; }
/* THE TEXT (Charcoal - Compact) */
.rev-pill-text {
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.01em;
}

/* THE CARROT ARROW (>) */
.rev-pill-arrow {
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  margin-left: 1px;
  transition: transform 0.3s ease;
}

.rev-pill:hover .rev-pill-arrow {
  transform: translateX(3px);
  color: #4b5563;
}

@keyframes pillPulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

@media (max-width: 480px) {
  .rev-pill {
    margin-bottom: 16px;
  }
}

/* Headline (desktop baseline) */
.rev-headline {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 14px;
  display: block !important;
  white-space: normal !important;
  max-width: 650px;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Animated word */
.rev-ai-animated {
  display: inline-block;
  background-image: linear-gradient(
    120deg,
    #4f46e5,
    #6366f1,
    #06b6d4
  );
  background-size: 260% 260%;
  -webkit-background-clip: text;
  color: transparent;
  animation: rev-ai-text-gradient 4s ease-in-out infinite;
}

@keyframes rev-ai-text-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Subheadline */
.rev-subheadline {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.5;
  margin-top: 6px;
  margin-bottom: 22px;
  max-width: 550px;
}

/* CTA wrap */
.rev-cta-centerwrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Button border animation */
.ai-btn-border {
  display: inline-block;
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(
    120deg,
    #ff2ef9,
    #ff914d,
    #ffd93d,
    #4cffdf,
    #5d5fff,
    #ff2ef9
  );
  background-size: 400% 400%;
  animation: aiBorderGlow 6s ease infinite;
}

@keyframes aiBorderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Button inner */
.ai-btn-gap {
  background: #ffffff;
  padding: 2px;
  border-radius: 14px;
}

.ai-cta-btn {
  display: block;
  padding: 20px 50px;
  border-radius: 12px;
  background: #202020;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

/* Subtext under CTA */
.ai-btn-subtext {
  margin-top: 2px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666666;
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  padding: 2px;
}

/* Trustpilot nudge on desktop only */
@media (min-width: 981px) {
  .rev-trust-wrapper {
    margin-left: 22px;
  }
}

/* Headline + CTA mobile adjustments */
@media (max-width: 980px) {
  .rev-headline-block {
    text-align: center;
    justify-items: center;
  }

  .rev-pill {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  .rev-headline {
    font-size: 44px;
    line-height: 1.12;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
  }

  .rev-subheadline {
    text-align: center;
    margin-top: 0px !important;
  }

  .rev-cta-centerwrap {
    align-items: center;
    text-align: center;
    gap: 3px;
  }
  .rev-2col-left {
    margin-bottom: 4px;  
  }
}

/* Phone headline sizing */
@media (max-width: 640px) {
  .rev-headline {
    font-size: 34px;
    line-height: 1.15;
  }

  .ai-cta-btn {
    padding: 20px 38px;
    font-size: 18px;
    border-radius: 12px;
  }
}

@media (max-width: 360px) {
  .rev-headline {
    font-size: 30px;
    line-height: 1.15;
  }
}

/* Slight step between desktop breakpoints */
@media (max-width: 1080px) and (min-width: 981px) {
  .rev-headline {
    font-size: 48px !important;
  }
}

@media (max-width: 1280px) and (min-width: 981px) {
  .rev-2col-left {
    padding-left: 12px;
  }
}

/* ======================================= 
   RIGHT COLUMN — AI DEMO WIDGET
======================================= */
.rev-hero-media {
  display: flex;
  justify-content: center;
  width: 100%;
}

.rev-demo-card {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 16px;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.06),
    0 6px 12px -4px rgba(15, 23, 42, 0.18);
  font-family: "Inter", sans-serif;
}

.rev-demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.rev-demo-tab-btn {
  flex: 1 1 calc(50% - 6px);
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

/* REPLACED WITH: Solid Electric Blue Active State */
.rev-demo-tab-btn.rev-active {
  background: #27272A !important;  /* Solid Electric Blue */
  border-color: #27272A !important; /* Matches background */
  color: #FFFFFF !important;        /* White text for contrast */
  font-weight: 600;
}

.rev-demo-panel { display: none; }
.rev-demo-panel.rev-active { display: block; }

/* Audio row */
.rev-demo-audio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rev-demo-play {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #202020;
  border: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.rev-demo-play-icon {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  display: block;
}

.rev-demo-play-icon--pause { display: none; }

/* scoped to the active panel so other tabs don’t show pause */
.rev-demo-panel.rev-demo-playing .rev-demo-play-icon--play { display: none; }
.rev-demo-panel.rev-demo-playing .rev-demo-play-icon--pause { display: block; }

.rev-demo-progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,#e5e7eb,#cbd5f5);
  overflow:hidden;
  position:relative;
}

.rev-demo-progress::before {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg,rgba(148,163,184,0.2),rgba(148,163,184,0.8),rgba(148,163,184,0.2));
  transform:translateX(-100%);
  animation: rev-progress-sheen 2.4s linear infinite;
}

@keyframes rev-progress-sheen {
  0% { transform:translateX(-100%); }
  100% { transform:translateX(100%); }
}

.rev-demo-time { font-size:11px;color:#6b7280; }


/*===========================================================
   INTEGRATIONS HEADING + SCROLL BAR
=========================================================== */
.rev-integrations-heading-wrap {
  background: #fff;
  border-top: 1px solid #f2f4f7;
  border-bottom: 1px solid #f2f4f7;
  width: 100%;
  max-width:1400px;
  display: block;
  justify-self: center;
  text-align: center;
  padding: 30px 20px 20px;
  box-sizing: border-box;
}

.rev-integrations-heading {
  text-align: center;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

/* Tablet */
@media (max-width: 980px) {
  .rev-integrations-heading-wrap {
    padding: 24px 16px 8px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .rev-integrations-heading-wrap {
    padding: 20px 12px 0px;
  }
}

/* --- Integrations section bar --- */
.rev-integrations-section{
  box-sizing:border-box;
  width:100%;
  max-width:1400px;
  display: block;
  justify-self: center;
  overflow:hidden;
  background:#fff;
  padding:2.5rem 0;
  border-top:1px solid #f2f4f7;
  border-bottom:1px solid #f2f4f7;
  text-align:center;
}

.rev-integrations-scroll{
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
}
.rev-integrations-scroll::-webkit-scrollbar{display:none;}

.rev-integrations-track{
  display:flex;
  width:max-content;
  will-change:transform;
  animation:rev-infinite 70s linear infinite;
}

.rev-integrations-scroll:hover .rev-integrations-track,
.rev-integrations-scroll:active .rev-integrations-track{
  animation-play-state:paused;
}

.rev-integrations-track img{
  height:45px;
  margin:0 50px;
  flex-shrink:0;
  opacity:.85;
  transition:transform .3s ease,opacity .3s ease;
  cursor:grab;

  /* 🔒 Force same behavior as bar #1, ignore global img rules */
  width:auto !important;
  max-width:none !important;
  object-fit:contain;
}

/* Mobile sizing */
@media(max-width:768px){
  .rev-integrations-section{padding:2rem 0.5rem;}
  .rev-integrations-track img{
    height:32px;
    margin:0 20px;
  }
  .rev-integrations-track{animation-duration:85s;}
}

.rev-integrations-track img:hover{
  opacity:1;
  transform:scale(1.08);
}

@keyframes rev-infinite{
  0%{transform:translateX(0);}
  100%{transform:translateX(-33.333%);}
}

@media(max-width:768px){
  .rev-integrations-section{padding:2rem 0.5rem;}
  .rev-integrations-track img{
    height:32px;
    margin:0 20px;
  }
  .rev-integrations-track{animation-duration:85s;}
}
/* ============================================================
   SOFT EDGE FADES FOR SCROLLING LOGO STRIP (LOOKS PREMIUM)
============================================================ */
.rev-integrations-scroll {
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}
/* SECOND STRIP – reverse direction & better vertical centering */
.rev-integrations-section--alt {
  padding-top: 2.5rem;      /* match first strip bottom padding */
  padding-bottom: 2.25rem;  /* keep a tiny bit tighter at the bottom */
  border-top: none;         /* avoid double border */
}

/* Reverse the animation direction for the second track */
.rev-integrations-track--reverse {
  animation-direction: reverse;
}

/* Mobile tweak so both strips keep nice padding */
@media (max-width: 768px) {
  .rev-integrations-section--alt {
    padding: 2rem 0.5rem 2rem;  /* symmetric on mobile */
  }
}

/* ===========================================================
   POPUP MODAL (CLICKUP STYLE)
=========================================================== */
#revsys-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background:
    radial-gradient(circle at top left, rgba(129, 140, 248, 0.45), transparent 60%),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.4), transparent 55%),
    rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.revsys-modal-shell {
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  background: #F5F7FB;
  border-radius: 20px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.65);
  padding: 18px 26px 20px;
  text-align: center;
  position: relative;
  font-family: "Inter", system-ui, sans-serif;
}

/* close button */
.revsys-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #9ca3af;
}
.revsys-modal-close:hover {
  color: #4b5563;
}

/* modal text */
.revsys-modal-logo {
  width: 24px;
  height: 24px;
  margin-bottom: 0px;
}

.revsys-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0px;
  margin-top: -14px;
}

.revsys-modal-subline {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 12px;
}
.revsys-modal-subline a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}
.revsys-modal-subline a:hover {
  text-decoration: underline;
}

/* Modal form shell */
.revsys-modal-form-shell {
  width: 100%;
  margin-bottom: 0px;
}

/* NEW INLINE FORM (email + continue) */
.rev-inline-form {
  display: flex;
  flex-direction: column;
  gap: 8px;              /* tighter spacing */
  width: 100%;
}

.rev-inline-form .rev-input-group {
  width: 100%;
}

.rev-inline-form input {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  padding: 0 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease,
              box-shadow 0.15s ease,
              background-color 0.15s ease;
}

.rev-inline-form input::placeholder {
  color: #9ca3af;
}

.rev-inline-form input:hover {
  border-color: #c7d2fe;
}

.rev-inline-form input:focus {
  border-color: #4f46e5 !important;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.6);
}

/* Email validation error style (no text, just outline) */
.rev-inline-form input.rev-invalid {
  border-color: #dc2626 !important;
  background-color: #fef2f2;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

/* Continue button (GHL-style) */
.rev-submit-btn {
  width: 100%;
  height: 52px;
  border-radius: 6px;
  border: none;
  background-color: #4f46e5;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease,
              box-shadow 0.15s ease,
              transform 0.05s ease;
}
.rev-submit-btn:hover {
  background-color: #4338ca;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}
.rev-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}
.rev-submit-btn[disabled] {
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
}
.rev-submit-btn .rev-arrow {
  font-size: 16px;
}
/* Loading state for popup submit button */
.rev-submit-btn {
  position: relative;
}

.rev-submit-btn .rev-label,
.rev-submit-btn .rev-arrow,
.rev-submit-btn .rev-spinner {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Spinner bubble (hidden by default) */
.rev-submit-btn .rev-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  box-sizing: border-box;
  animation: rev-spin 0.7s linear infinite;
  margin-left: 4px;
  display: none;
}

/* When loading: disable pointer, show spinner, hide arrow */
.rev-submit-btn.rev-loading {
  cursor: default;
}

.rev-submit-btn.rev-loading .rev-spinner {
  display: inline-block;
}

.rev-submit-btn.rev-loading .rev-arrow {
  opacity: 0;
  transform: translateY(1px);
}

/* Optional: tiny dim on label while loading */
.rev-submit-btn.rev-loading .rev-label {
  opacity: 0.9;
}

/* Spinner keyframes */
@keyframes rev-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Form message */
.rev-form-message {
  font-size: 12px;
  text-align: center;
  margin-top: 0;      /* tighter */
  min-height: 0px;   /* smaller reserve space */
}
.rev-form-message.rev-error {
  color: #b91c1c;
}
.rev-form-message.rev-success {
  color: #16a34a;
}

/* legal text */
.revsys-modal-legal {
  font-size: 10px;
  color: #6b7280;
  line-height: 1.4;
  margin-top: 6px;
  margin-bottom: 4px;
  text-align: center;
  white-space: normal;    /* allow wrapping, no weird right-leaning */
}

.revsys-modal-legal a {
  color: #696969;
  text-decoration: underline;
}
.revsys-modal-legal a:hover {
  text-decoration: underline;
}


#revsys-popup .popup-logo {
  max-width: 32px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}
@media (max-width: 480px) {
  #revsys-popup .popup-logo {
    max-width: 32px;
  }
}

/* Scroll lock classes */
body.revsys-lock-scroll {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: contain !important;
}

html.revsys-lock-scroll {
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}

/* ===========================================================
   MODAL STABILITY PATCH (MOBILE)
=========================================================== */
@media (hover: none) and (pointer: coarse) {
  #revsys-popup {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;

    padding: 18px 16px max(18px, env(safe-area-inset-bottom)) !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;

    background:
      radial-gradient(circle at top left, rgba(129, 140, 248, 0.60), transparent 62%),
      radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.56), transparent 58%),
      linear-gradient(180deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.88)) !important;
  }

  .revsys-modal-shell {
    margin: 18px auto 28px !important; /* <- this is the “top margin” fix */
    transform: none !important;
  }

  #revsys-popup input,
  #revsys-popup select,
  #revsys-popup textarea {
    font-size: 16px !important;
  }
}

/* === Hero CTA small overrides (unchanged) === */
.ai-cta-btn {
  line-height: 1.25 !important;
  letter-spacing: .02em !important;
  position: relative;
  overflow: hidden; /* needed for overlay sheen */
}
.ai-btn-gap,
.ai-btn-border {
  line-height: normal !important;
}
@media (max-width: 640px) {
  .rev-headline {
    margin-bottom: 6px !important;
  }
}
.ai-cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.18s ease-in-out;
  pointer-events: none;
}
.ai-cta-btn:hover::after {
  opacity: 1;
}

/* ===========================================================
   GOOGLE LOGIN OPTION IN POPUP
========================================================== */

/* "or" divider between email and Google */
.rev-auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px; /* tighter spacing */
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rev-auth-divider span {
  flex: 0 0 auto;
}

.rev-auth-divider::before,
.rev-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148,163,184,0.8),
    transparent
  );
}

/* --- Google button container (simplified) --- */
.rev-google-wrap {
  width: 100%;
  margin-bottom: 16px;
  margin-top: 10px;
  display: flex;
  justify-content: center;  /* centers the button column */
}

/* Let Google control the actual button width via data-width */
.rev-google-wrap .g_id_signin {
  display: block;
  margin: 0;
}

/* No width forcing here – the iframe uses data-width */
.rev-google-wrap .g_id_signin > div,
.rev-google-wrap .g_id_signin iframe {
  width: auto !important;
  max-width: none !important;
  margin: 0;
  box-sizing: border-box;
}

.rev-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 999999 !important;
  width: 100%;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22); /* clearer divide */
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);        /* hairline shadow */
}
.rev-demo-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
}

/* ============================
   Magic Rotating Word
   (The "Lock & Key" Gradient Tech)
============================ */

/* Wrapper - Removed margin-left to fix indentation */
.rev-magic-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  vertical-align: bottom;
  /* margin-left: 0; <--- FIXED: Removed the nudge */
}

/* The word container */
.rev-magic-word {
  position: relative;
  display: inline-flex;
  font-weight: 800;
  line-height: 1.2;
  /* Default state: Solid Indigo (matches gradient start) */
  color: #4338ca; 
  transition: all 0.3s ease;
}

/* 🌟 THE "LOCKED" STATE
   This class is added by JS once the letters finish animating.
   It applies the gradient to the WHOLE word continuously.
*/
.rev-magic-word.rev-gradient-locked {
  background-image: linear-gradient(
    135deg,
    #2563EB 0%,   /* Blue */
    #9333EA 50%,  /* Purple */
    #06B6D4 100%  /* Cyan */
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* Text becomes window to gradient */
  
  /* The Shimmer Animation */
  animation: revGradientFlow 3s linear infinite;
}

/* THE ANIMATING LETTERS
   - Solid color (no noisy gradient)
   - Starts invisible/blurry
*/
.rev-magic-letter {
  display: inline-block;
  opacity: 0;
  filter: blur(12px); 
  transform: scale(1.15) translateX(8px); 
  color: inherit; /* Takes parent color (#4338ca) */
  will-change: opacity, filter, transform;
}

/* Animation: Letter Wipes In */
.rev-magic-letter.rev-magic-letter--in {
  animation: revSmartReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* STATIC "AI" (Matches the gradient) */
.rev-ai-static {
  display: inline-block;
  font-weight: 800;
  margin-right: 0.25em; /* Space between AI and Magic Word */
  background-image: linear-gradient(
    135deg,
    #2563EB 0%,
    #9333EA 50%,
    #06B6D4 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: revGradientFlow 4s linear infinite reverse;
}

/* THE SPARKLES - "Wispy" & More Visible */
.rev-magic-sparkle{
  position:absolute;
  pointer-events:none;
  opacity:0;
  z-index:10;

  background:transparent;
  border-radius:0;
  box-shadow:none;

  filter:
    drop-shadow(0 0 6px rgba(147, 51, 234, 0.55))
    drop-shadow(0 0 10px rgba(37, 99, 235, 0.35));

  animation: revSparkleWisp 1.4s ease-out forwards;
  will-change: transform, opacity, filter;
}

.rev-magic-sparkle-icon{
  width:100%;
  height:100%;
  display:block;
}


/* ============================
   KEYFRAMES
============================ */

/* 1. Letter Entry */
@keyframes revSmartReveal {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.15) translateX(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1) translateX(0);
  }
}

/* 2. Gradient Flow */
@keyframes revGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3. Sparkle Wisp (Float Up & drift) */
@keyframes revSparkleWisp {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  15% {
    opacity: 1; /* Fade in fast */
    transform: translate(0, -5px) scale(1.2); /* Pop up */
  }
  100% {
    opacity: 0;
    /* Move up significantly (-35px) and sideways (--mx) */
    transform: translate(var(--mx), -35px) scale(0.1); 
  }
}

/* Mobile Breakpoint for Headline */
@media (max-width: 768px) {
  .rev-headline br {
    content: "";
    display: block;
    margin-bottom: 0px;
  }
}

/* ================================
   RevSystems – Trustpilot Tiles
   AI Receptionist Landing Page
================================ */

.rev-tp-tiles {
  background-color: #ffffff;
  padding: clamp(32px, 5vw, 56px) 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: #0f172a;
}

@media (min-width: 1024px) {
  .rev-tp-tiles {
    padding-top: 32px;
    padding-bottom: 26px;
  }
}

.rev-tp-tiles-inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* Grid / slider layout (mobile default = horizontal slider) */
.rev-tp-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.rev-tp-grid::-webkit-scrollbar {
  height: 6px;
}
.rev-tp-grid::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}
.rev-tp-grid::-webkit-scrollbar-track {
  background: transparent;
}

/* Review card */

.rev-tp-card {
  scroll-snap-align: start;
  background-color: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.06),
    0 6px 12px -4px rgba(15, 23, 42, 0.18);
  padding: 16px 18px 18px;
  min-width: min(280px, 80vw);
  max-width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Stars row: stars left, date right */

.rev-tp-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.rev-tp-stars-img {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* date now lives in the stars row */
.rev-tp-date {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  margin-left: 12px;
}

/* Verified badge now sits under stars */

.rev-tp-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #16a34a;
  font-weight: 500;
  font-size: 11px;
  margin-bottom: 8px;
}

.rev-tp-verified-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1.5px solid #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

/* Review text with 2-line clamp */

.rev-tp-text {
  font-size: 13px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rev-tp-card.rev-tp-expanded .rev-tp-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* "More" link */

.rev-tp-more {
  margin-bottom: 10px;
  padding: 0;
  border: none;
  background: none;
  font-size: 11px;
  color: #4b5563;
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
}

.rev-tp-more:focus {
  outline: none;
}

/* Footer: now avatar + name left, Trustpilot logo right */

.rev-tp-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7280;
}

/* user block moved to footer */

.rev-tp-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rev-tp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #e5e7eb;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.rev-tp-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rev-tp-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Trustpilot logo */

.rev-tp-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rev-tp-logo {
  height: 18px;
  width: auto;
  display: block;
}

/* ===== Responsive layout ===== */

/* Tablet & desktop: 3 cards in a row */
@media (min-width: 768px) {
  .rev-tp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    margin: 0;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .rev-tp-card {
    min-width: 0;
    max-width: none;
  }

  .rev-tp-name {
    max-width: 190px;
  }
}

/* Let card shadows fully show inside the scroll area on mobile */
.rev-tp-grid {
  padding-bottom: 10px;
  overflow-y: visible;
}

/* Mobile slider behavior – horizontal only, BUT allow page vertical scroll */
@media (max-width: 767px) {
  .rev-tp-tiles,
  .rev-tp-tiles-inner {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .rev-tp-grid {
    display: flex;
    gap: 16px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
    margin: 0;

    /* horizontal slider */
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    /* ⬅️ THIS is the fix: allow both pans instead of locking to x only */
    touch-action: auto; /* or just delete this line entirely */
  }

  .rev-tp-card {
    height: auto !important;
    max-height: none !important;
  }
}

/* Ultra-small phones: make each tile full-width so nothing crops */
@media (max-width: 365px) {
  .rev-tp-card {
    min-width: 100%;
    max-width: 100%;
  }
}
.rev-tp-footer {
  margin-top: auto;      /* pushes footer to the bottom */
  padding-top: 10px;     /* adjust spacing above footer as needed */
}


/* ================================
   VOICES SECTION – RevSystems
================================ */

.rev-voices {
  background: #ffffff;
  padding: clamp(40px, 6vw, 72px) 16px;
  padding-top: 40px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: #0f172a;
}

.rev-voices-inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* Section header */

.rev-voices-label:not(.rev-pill) {
  display: block;                  /* was inline-flex */
  width: max-content;              /* shrink to pill width */
  margin: 0 auto 10px;             /* centers the pill */
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #16a34a;
}

.rev-voices-heading {
  text-align: center;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.rev-voices-subheading {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 28px;
}

/* Grid – 3x3 desktop/tablet, 1 col on mobile */

.rev-voices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 767px) {
  .rev-voices-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Voice card */

.rev-voice-card {
  position: relative;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 10px 25px -18px rgba(15, 23, 42, 0.36);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease,
              background 160ms ease;
}

.rev-voice-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  background: #ffffff;
  box-shadow:
    0 10px 30px -18px rgba(15, 23, 42, 0.28);
}

/* Top row */

.rev-voice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rev-voice-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rev-voice-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.rev-voice-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rev-voice-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.rev-voice-meta {
  font-size: 11px;
  color: #9ca3af;
}

/* Play button */

.rev-voice-play {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #020617;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: transform 120ms ease, background 120ms ease;
}

.rev-voice-play:hover {
  transform: translateY(-1px);
  background: #020617; /* keep it solid, just a tiny lift */
}

.rev-voice-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.rev-voice-icon--pause {
  display: none;
}

/* When playing, swap icon & accent progress color via card state */

.rev-voice-card.rev-voice-playing .rev-voice-icon--play {
  display: none;
}
.rev-voice-card.rev-voice-playing .rev-voice-icon--pause {
  display: block;
}

/* Bottom row: scrub bar + time */

.rev-voice-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.rev-voice-time,
.rev-voice-duration {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #9ca3af;
}

.rev-voice-progress {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.rev-voice-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 60ms linear;
}

/* On play, slightly brighten the bar */

.rev-voice-card.rev-voice-playing .rev-voice-progress {
  background: #d1fae5;
}

/* Small tweak for very narrow phones */
@media (max-width: 340px) {
  .rev-voice-bottom {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .rev-voice-duration {
    justify-self: flex-end;
    grid-column: 2 / 3;
  }
}
/* ================================
   GLOBAL VARIABLES (Hero section)
=================================== */
:root {
  --ai-primary-blue: #2563EB;
  --ai-primary-dark: #1e50bd;
  --ai-text-dark: #111827;
  --ai-text-gray: #6B7280;
  --ai-bg-light: #F9FAFB;
  --ai-white: #FFFFFF;
  --ai-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* Premium Shadows */
  --ai-shadow-bubble: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 10px -3px rgba(0, 0, 0, 0.08);
  --ai-shadow-img: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --ai-radius-lg: 16px;
  --ai-radius-md: 12px;
}

/* ================================
   HERO: Booking With AI
=================================== */

#ai-booking-production {
  font-family: 'Inter', sans-serif;
  background-color: var(--ai-white);
  padding: 80px 20px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

/* Mobile wrapper gets more comfortable spacing */
@media (max-width: 768px) {
  #ai-booking-production {
    padding: 60px 0; /* Remove side padding, let container handle it */
  }
}

#ai-booking-production * {
  box-sizing: border-box;
}

.ai-container-prod {
  max-width: 1320px; /* Increased from 1200px to match site layout */
  margin: 0 auto;
  padding: 0 40px; /* Increased from 20px for better spacing */
}

/* Mobile gets minimal padding for full-width look */
@media (max-width: 991px) {
  .ai-container-prod {
    padding: 0 24px;
  }
}

@media (max-width: 640px) {
  .ai-container-prod {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .ai-container-prod {
    padding: 0 18px;
  }
}

/* Extra padding in tight squeeze zone */
@media (min-width: 992px) and (max-width: 1300px) {
  .ai-container-prod {
    padding: 0 50px;
  }
}

/* GRID SYSTEM */
.ai-grid-prod {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

/* Standard Desktop - Balanced */
@media (min-width: 992px) {
  .ai-grid-prod {
    grid-template-columns: 48% 52%;
    gap: 50px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .ai-grid-prod {
    grid-template-columns: 45% 55%;
    gap: 60px;
  }
}

/* Extra large */
@media (min-width: 1400px) {
  .ai-grid-prod {
    grid-template-columns: 42% 58%;
    gap: 80px;
  }
}

/* LEFT CONTENT */
.ai-content-col {
  text-align: left;
  z-index: 2;
}

/* Center content on mobile phones only */
@media (max-width: 767px) {
  .ai-content-col {
    text-align: center;
  }

  /* Keep feature list left-aligned */
  .ai-feature-list {
    text-align: left;
  }
}

.ai-content-col h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ai-text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Reduce headline size in problematic range */
@media (min-width: 992px) and (max-width: 1150px) {
  .ai-content-col h2 {
    font-size: 34px;
    line-height: 1.15;
  }
}

@media (min-width: 1151px) {
  .ai-content-col h2 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .ai-content-col h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
  }
}

@media (max-width: 520px) {
  .ai-content-col h2 {
    font-size: 28px;
    margin-bottom: 18px;
    line-height: 1.25;
  }
}

@media (max-width: 380px) {
  .ai-content-col h2 {
    font-size: 26px;
    margin-bottom: 16px;
  }
}

/* GEMINI AI GRADIENT TEXT ANIMATION */
.ai-gradient-text {
  background: linear-gradient(
    to right,
    #2563EB 0%,
    #9333EA 25%,
    #06B6D4 50%,
    #9333EA 75%,
    #2563EB 100%
  );
  background-size: 200% auto;
  color: #2563EB; /* Fallback */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  display: inline-block;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.ai-content-col p.ai-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ai-text-gray);
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .ai-content-col p.ai-lead {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .ai-content-col p.ai-lead {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

.ai-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

/* Tighter spacing on desktop */
@media (min-width: 992px) {
  .ai-feature-list {
    margin: 0 0 24px 0;
  }
}

/* Tighter mobile spacing */
@media (max-width: 768px) {
  .ai-feature-list {
    margin: 0 0 20px 0;
  }
  .ai-feature-list li {
    margin-bottom: 14px;
    font-size: 15px;
  }
}

.ai-feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--ai-text-dark);
  font-size: 16px;
  line-height: 1.4;
}

.ai-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #DBEAFE;
  color: var(--ai-primary-blue);
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-checkmark svg { width: 16px; height: 16px; stroke-width: 3; }


/* RIGHT VISUAL */
.ai-visual-col {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* Add breathing room on desktop */
@media (min-width: 992px) {
  .ai-visual-col {
    padding-right: 30px;
    overflow: visible;
  }
}

/* Extra padding in danger zone */
@media (min-width: 992px) and (max-width: 1399px) {
  .ai-visual-col {
    padding-right: 60px;
  }
}

/* Comfortable padding on very large screens */
@media (min-width: 1400px) {
  .ai-visual-col {
    padding-right: 40px;
  }
}

.ai-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  overflow: visible;
}

/* Prevent wrapper from being pushed out of bounds */
@media (min-width: 992px) and (max-width: 1399px) {
  .ai-visual-wrapper {
    max-width: 650px;
  }
}

@media (min-width: 1400px) {
  .ai-visual-wrapper {
    max-width: 700px;
  }
}

.ai-main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-img);
  background: var(--ai-white);
  image-rendering: -webkit-optimize-contrast;
}

.ai-phone-overlay {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: auto;
  z-index: 2;
  border-radius: 20px;
  box-shadow: var(--ai-shadow-img);
  border: 4px solid var(--ai-white);
  display: none;
}

@media (min-width: 992px) {
  .ai-phone-overlay { display: block; }
}

/* CHAT BUBBLES */
.ai-chat-stack {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 250px;
}

.ai-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--ai-shadow-bubble);
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
}

.ai-user {
  background-color: var(--ai-white);
  color: var(--ai-text-dark);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  border: 1px solid #E5E7EB;
  transform: translateX(10px);
}

.ai-bot {
  background-color: var(--ai-primary-blue);
  color: var(--ai-white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  transform: translateX(-10px);
}

/* DESKTOP PLACEMENT */
@media (min-width: 992px) {
  .ai-chat-stack {
    top: -30px;
    right: -30px;
  }
}

/* Tight squeeze 992-1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .ai-chat-stack {
    right: 0px;
    top: -20px;
    width: 230px;
  }

  .ai-bubble {
    font-size: 13px;
    padding: 12px 15px;
  }

  .ai-phone-overlay {
    left: -15px;
    width: 165px;
  }
}

/* Medium desktop 1200-1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
  .ai-chat-stack {
    right: -15px;
    top: -25px;
    width: 240px;
  }

  .ai-phone-overlay {
    left: -25px;
    width: 170px;
  }
}

/* Larger screens 1400px+ */
@media (min-width: 1400px) {
  .ai-chat-stack {
    right: -30px;
    top: -30px;
    width: 250px;
  }

  .ai-phone-overlay {
    left: -40px;
    width: 180px;
  }
}

/* MOBILE/TABLET PLACEMENT */
@media (max-width: 991px) {
  .ai-visual-col {
    padding-bottom: 40px;
  }
  .ai-chat-stack {
    top: -30px;
    bottom: auto;
    right: 0px;
    width: 240px;
  }
  .ai-bubble {
    font-size: 12px;
    padding: 12px 14px;
  }
}

/* ANIMATIONS */
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

.ai-visible .ai-visual-wrapper { opacity: 1; transform: translateY(0); }

.ai-delay-1 { animation-delay: 0.3s; }
.ai-delay-2 { animation-delay: 1.0s; }
.ai-delay-3 { animation-delay: 1.8s; }

/* ================================
   BUILDER / TEMPLATES TOGGLE
=================================== */

/* CORE VARIABLES (matching hero) */
:root {
  --ai-primary-blue: #2563EB;
  --ai-primary-dark: #1e50bd;
  --ai-text-dark: #111827;
  --ai-text-gray: #6B7280;
  --ai-bg-light: #F9FAFB;
  --ai-white: #FFFFFF;
  --ai-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --ai-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ai-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --ai-radius-lg: 16px;
  --ai-radius-md: 12px;
  --ai-radius-pill: 9999px;
}

/* WRAPPER */
#ai-builder-section {
  font-family: 'Inter', sans-serif;
  background-color: var(--ai-white);
  padding: 80px 20px;
  box-sizing: border-box;
  text-align: center;
}

#ai-builder-section * {
  box-sizing: border-box;
}

.ai-container-narrow {
  max-width: 1000px;
  margin: 0 auto;
}

/* HEADER */
.ai-header-group {
  margin-bottom: 40px;
}

.ai-header-group h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--ai-text-dark);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.ai-header-group p {
  font-size: 18px;
  color: var(--ai-text-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* TOGGLE SWITCH */
.ai-toggle-wrapper {
  display: inline-flex;
  background-color: #F3F4F6;
  padding: 6px;
  border-radius: var(--ai-radius-pill);
  position: relative;
  margin-bottom: 50px;
  border: 1px solid #E5E7EB;
}

.ai-toggle-btn {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ai-text-gray);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--ai-radius-pill);
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.ai-toggle-btn.active {
  color: var(--ai-primary-blue);
  font-weight: 600;
  background-color: var(--ai-white);
  box-shadow: var(--ai-shadow-sm);
}

/* TAB CONTENT AREA */
.ai-tab-content {
  display: none;
  animation: fadeInScale 0.5s ease-out;
}

.ai-tab-content.active {
  display: block;
}

/* Text inside tab */
.ai-tab-text {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.ai-tab-text h3 {
  font-size: 24px;
  color: var(--ai-text-dark);
  margin-bottom: 8px;
}
.ai-tab-text p {
  color: var(--ai-text-gray);
  font-size: 16px;
}

/* BROWSER MOCKUP */
.ai-browser-frame {
  background: var(--ai-white);
  border-radius: var(--ai-radius-lg);
  box-shadow: var(--ai-shadow-xl);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Fake Browser Header */
.ai-browser-header {
  background-color: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  height: 36px;
  display: flex;
  align-items: center;
  padding-left: 16px;
  gap: 8px;
}
.ai-dot { width: 10px; height: 10px; border-radius: 50%; }
.ai-dot-red { background-color: #EF4444; }
.ai-dot-yellow { background-color: #F59E0B; }
.ai-dot-green { background-color: #10B981; }

/* Image Styling */
.ai-browser-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* FLOATING ANIMATIONS */
/* Badge for Templates */
.ai-float-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--ai-white);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  border: 1px solid #E5E7EB;
  pointer-events: none;
}

.ai-icon-circle {
  width: 32px;
  height: 32px;
  background: #ECFDF5; /* Green tint */
  color: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip for Builder */
.ai-float-tooltip {
  position: absolute;
  top: 30%;
  left: 40%;
  background: #1F2937;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  box-shadow: var(--ai-shadow-md);
}
.ai-float-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #1F2937 transparent transparent transparent;
}

/* Animation Classes */
@keyframes fadeInScale {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popIn {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(0.8); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Trigger classes */
.active .ai-float-badge {
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s forwards;
}
.active .ai-float-tooltip {
  animation: floatUp 0.6s ease-out 0.8s forwards;
}

@media (max-width: 768px) {
  .ai-header-group h2 { font-size: 28px; }
  .ai-toggle-btn { padding: 8px 16px; font-size: 14px; }
}

/* ================================
   PRICING SECTION
=================================== */

/* Aligned variables */
#ai-pricing-section-isolated {
  --pricing-blue: #2563EB;
  --pricing-blue-dark: #1e50bd;
  --pricing-text-main: #111827;
  --pricing-text-sub: #6B7280;
  --pricing-bg-track: #F3F4F6;
  --pricing-white: #FFFFFF;
  --pricing-border: #E5E7EB;

  --pricing-radius-card: 24px;
  --pricing-radius-btn: 12px;
  --pricing-radius-pill: 9999px;

  --pricing-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --pricing-shadow-pop: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
}

/* WRAPPER */
#ai-pricing-section-isolated {
  font-family: 'Inter', sans-serif;
  background-color: var(--pricing-white);
  padding: 80px 20px;
  box-sizing: border-box;
  color: var(--pricing-text-main);
  width: 100%;
  
  /* The Fix: */
  scroll-margin-top: 15vh;
}

/* Add small side padding on mobile */
@media (max-width: 991px) {
  #ai-pricing-section-isolated {
    padding: 60px 12px;
  }
}

#ai-pricing-section-isolated * {
  box-sizing: border-box;
}

.ai-pricing-container {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

@media (min-width: 992px) {
  .ai-pricing-container {
    padding: 0 40px;
  }
}

/* Remove padding on mobile */
@media (max-width: 991px) {
  .ai-pricing-container {
    padding: 0 !important;
  }
}

/* HEADER */
.ai-pricing-head h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
  color: var(--pricing-text-main);
  line-height: 1.2;
}

@media (min-width: 520px) {
  .ai-pricing-head h2 {
    font-size: 32px;
    line-height: 1.15;
  }
}

@media (min-width: 768px) {
  .ai-pricing-head h2 {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 16px;
  }
}

@media (min-width: 992px) {
  .ai-pricing-head h2 {
    font-size: 38px;
  }
}

.ai-pricing-head p {
  font-size: 15px;
  color: var(--pricing-text-sub);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .ai-pricing-head p {
    font-size: 17px;
    margin-bottom: 50px;
  }
}

/* Reduce spacing on mobile */
@media (max-width: 991px) {
  .ai-pricing-head p {
    margin-bottom: 28px;
  }
}

/* TOGGLE */
.ai-pricing-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 50px;
  width: 100%;
  flex-wrap: wrap;
}

/* Reduce spacing on mobile */
@media (max-width: 991px) {
  .ai-pricing-toggle-wrapper {
    margin-bottom: 24px;
  }
}

.ai-pricing-track {
  display: inline-flex;
  background-color: var(--pricing-bg-track);
  padding: 4px;
  border-radius: var(--pricing-radius-pill);
  position: relative;
  border: 1px solid var(--pricing-border);
  width: auto;
}

.ai-pricing-switch-btn {
  padding: 10px 24px;
  border-radius: var(--pricing-radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--pricing-text-sub);
  position: relative;
  z-index: 2;
  user-select: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ai-pricing-switch-btn.active {
  color: var(--pricing-text-main);
  background-color: var(--pricing-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ai-pricing-save-badge {
  background-color: #DCFCE7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--pricing-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* MOBILE SLIDER CONTAINER */
.ai-pricing-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

@media (max-width: 991px) {
  .ai-pricing-slider-wrapper {
    padding-top: 10px;
  }
}

/* Desktop: grid */
@media (min-width: 992px) {
  .ai-pricing-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: flex-start;
  }
}

/* Mobile: slider */
@media (max-width: 991px) {
  .ai-pricing-grid-layout {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 12px 0 16px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ai-pricing-grid-layout::-webkit-scrollbar {
    display: none;
  }

  .ai-pricing-card {
    flex: 0 0 100%;
    max-width: 500px;
    scroll-snap-align: start;
    margin: 0 auto;
  }

  @media (min-width: 640px) {
    .ai-pricing-card {
      max-width: 600px;
    }
  }

  .ai-pricing-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
  }

  .ai-pricing-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pricing-white);
    border: 1px solid var(--pricing-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--pricing-text-main);
  }

  .ai-pricing-nav-btn:hover {
    background: var(--pricing-bg-track);
    border-color: var(--pricing-text-main);
  }

  .ai-pricing-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  .ai-pricing-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .ai-pricing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pricing-border);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .ai-pricing-dot.active {
    background: var(--pricing-blue);
    width: 24px;
    border-radius: 4px;
  }
}

/* Hide mobile nav on desktop */
@media (min-width: 992px) {
  .ai-pricing-nav,
  .ai-pricing-dots {
    display: none;
  }
}

/* CARDS */
.ai-pricing-card {
  background: var(--pricing-white);
  border: 1px solid var(--pricing-border);
  border-radius: var(--pricing-radius-card);
  padding: 32px 28px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .ai-pricing-card {
    padding: 40px 32px;
  }
}

/* Highlight */
.ai-pricing-card.is-popular {
  border-color: var(--pricing-blue);
  box-shadow: var(--pricing-shadow-pop);
  border-width: 2px;
}

@media (min-width: 992px) {
  .ai-pricing-card.is-popular {
    transform: scale(1.02);
    z-index: 2;
  }
}

.ai-pricing-pop-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pricing-blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--pricing-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
  white-space: nowrap;
}

/* Content */
.ai-pricing-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--pricing-text-main);
}

.ai-pricing-volume {
  display: inline-block;
  background-color: #F3F4F6;
  color: var(--pricing-text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.ai-pricing-cost-box {
  margin-bottom: 32px;
  min-height: 70px;
}

.ai-pricing-val {
  font-size: 44px;
  font-weight: 800;
  color: var(--pricing-text-main);
  letter-spacing: -0.04em;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.ai-pricing-period {
  font-size: 16px;
  color: var(--pricing-text-sub);
  font-weight: 500;
}

.ai-pricing-annual-text {
  font-size: 13px;
  color: var(--pricing-blue);
  font-weight: 500;
  display: block;
  opacity: 0;
  transform: translateY(-5px);
  margin-top: 6px;
  transition: all 0.3s ease;
}

.show-annual .ai-pricing-annual-text {
  opacity: 1;
  transform: translateY(0);
}

/* Features */
.ai-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  flex-grow: 1;
}

.ai-pricing-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--pricing-text-main);
  line-height: 1.5;
  font-weight: 500;
}

.ai-pricing-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background-color: #DBEAFE;
  color: var(--pricing-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  margin-top: 1px;
}
.ai-pricing-check svg { width: 13px; height: 13px; stroke-width: 3; }

/* Buttons */
.ai-pricing-cta {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  border-radius: var(--pricing-radius-btn);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}

.ai-btn-outline {
  background-color: transparent;
  border: 1px solid var(--pricing-border);
  color: var(--pricing-text-main);
}
.ai-btn-outline:hover {
  border-color: var(--pricing-text-main);
  background-color: #F9FAFB;
}

.ai-btn-solid {
  background-color: var(--pricing-blue);
  color: white;
  border: 1px solid var(--pricing-blue);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
}
.ai-btn-solid:hover {
  background-color: var(--pricing-blue-dark);
  transform: translateY(-2px);
}

/* FOOTER */
.ai-pricing-foot {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--pricing-border);
}
.ai-pricing-foot p {
  color: var(--pricing-text-sub);
  font-size: 14px;
  line-height: 1.6;
}
.ai-pricing-foot a {
  color: var(--pricing-blue);
  font-weight: 600;
  text-decoration: none;
}
.ai-pricing-foot a:hover {
  text-decoration: underline;
}

/* ================================
   HANDOFF SECTION
=================================== */

/* VARIABLES */
#ai-handoff-polish {
  --ho-blue: #2563EB;
  --ho-green: #16A34A;
  --ho-text-dark: #0F172A;
  --ho-text-gray: #64748B;
  --ho-bg-light: #F8FAFC;
  --ho-white: #FFFFFF;
  --ho-radius: 24px;

  --ho-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  --ho-shadow-bubble: 0 10px 20px -3px rgba(0, 0, 0, 0.15), 0 4px 8px -4px rgba(0, 0, 0, 0.1);
}

/* WRAPPER */
#ai-handoff-polish {
  font-family: 'Inter', sans-serif;
  background-color: var(--ho-white);
  padding: 100px 0;
  box-sizing: border-box;
  color: var(--ho-text-dark);
  overflow: hidden;
  width: 100%;
}

#ai-handoff-polish * {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.ai-ho-container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 10px;
}

/* GRID */
.ai-ho-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 992px) {
  .ai-ho-grid {
    grid-template-columns: 45% 55%;
    gap: 60px;
  }
}

/* CONTENT */
.ai-ho-content h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ho-text-dark);
}

.ai-ho-content p {
  font-size: 18px;
  color: var(--ho-text-gray);
  margin: 0 0 32px 0;
  line-height: 1.6;
  max-width: 480px;
}

.ai-ho-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-ho-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ho-text-dark);
}

.ai-ho-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: #EFF6FF;
  color: var(--ho-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  margin-top: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.ai-ho-check svg { width: 14px; height: 14px; stroke-width: 3; }

/* VISUAL */
.ai-ho-visual {
  position: relative;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGE CONTAINER */
.ai-ho-img-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--ho-radius);
  overflow: hidden;
  box-shadow: var(--ho-shadow-xl);
  transform: perspective(1000px) rotateY(-2deg);
  background: var(--ho-white);
  z-index: 1;
}

.ai-ho-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 450px;
}

/* Overlay */
.ai-ho-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* BUBBLES */
.ai-ho-bubble {
  position: absolute;
  z-index: 3;
  background: var(--ho-white);
  padding: 14px 20px;
  border-radius: 18px;
  box-shadow: var(--ho-shadow-bubble);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.ai-bubble-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-icon-blue { background-color: var(--ho-blue); color: white; }
.ai-icon-green { background-color: var(--ho-green); color: white; }
.ai-bubble-text { display: flex; flex-direction: column; }
.ai-bubble-title { font-weight: 700; font-size: 14px; color: var(--ho-text-dark); }
.ai-bubble-sub { font-weight: 500; font-size: 12px; color: var(--ho-text-gray); }

/* DESKTOP POSITIONING */
@media (min-width: 992px) {
  .ai-bubble-transfer { bottom: 80px; left: -20px; }
  .ai-bubble-lead { bottom: 180px; right: -20px; }

  .ai-animate-active .ai-bubble-transfer { animation: popIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards; }
  .ai-animate-active .ai-bubble-lead { animation: popIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards; }
}

/* LAPTOP SAFETY 992-1200px */
@media (min-width: 992px) and (max-width: 1200px) {
  .ai-bubble-lead {
    right: 0px;
    bottom: 160px;
  }
  .ai-bubble-transfer {
    left: 0px;
    bottom: 60px;
  }
}

@keyframes popIn { to { opacity: 1; transform: translateY(0) scale(1); } }

/* MOBILE FIXES */
@media (max-width: 991px) {
  #ai-handoff-polish { padding: 60px 0; }
  .ai-ho-container { width: 90%; padding: 0; }

  .ai-ho-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ai-ho-content {
    text-align: center;
  }

  .ai-ho-content h2 {
    font-size: 30px;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .ai-ho-content p {
    font-size: 16px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .ai-ho-features {
    text-align: left;
  }

  .ai-ho-features li {
    justify-content: flex-start;
    max-width: 100%;
  }

  .ai-ho-visual {
    display: block;
    padding: 0;
    margin-top: 10px;
  }

  .ai-ho-img-wrap {
    transform: none;
    width: 100%;
    aspect-ratio: 4/5;
  }
  .ai-ho-img-wrap img {
    height: 100%;
    object-position: center 20%;
  }

  .ai-ho-bubble {
    max-width: 85%;
    padding: 10px 14px;
  }
  .ai-bubble-title { font-size: 13px; }
  .ai-bubble-sub { font-size: 11px; }

  .ai-bubble-transfer { top: 20px; left: 0; bottom: auto; right: auto; }
  .ai-bubble-lead { bottom: 20px; right: 0; top: auto; left: auto; }

  .ai-animate-active .ai-bubble-transfer { animation: popIn 0.6s ease 0.2s forwards; }
  .ai-animate-active .ai-bubble-lead { animation: popIn 0.6s ease 0.6s forwards; }
}

/* ================================
   FAQ SECTION
=================================== */

/* VARIABLES */
#ai-faq-section {
  --faq-blue: #2563EB;
  --faq-text-dark: #0F172A;
  --faq-text-gray: #64748B;
  --faq-border: #E2E8F0;
  --faq-bg-light: #F8FAFC;
  --faq-white: #FFFFFF;
  --faq-hover: #F1F5F9;
  --faq-green: #10B981;
}

/* WRAPPER */
#ai-faq-section {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 100px 0;
  box-sizing: border-box;
}

#ai-faq-section * {
  box-sizing: border-box;
}

.ai-faq-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 991px) {
  .ai-faq-container {
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  #ai-faq-section {
    padding: 60px 0;
  }
  .ai-faq-container {
    padding: 0 20px;
  }
}

/* HEADER */
.ai-faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.ai-faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: var(--faq-blue);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.ai-faq-badge svg {
  width: 16px;
  height: 16px;
}

.ai-faq-header h2 {
  font-size: 48px;
  font-weight: 800;
  color: var(--faq-text-dark);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ai-faq-header p {
  font-size: 20px;
  color: var(--faq-text-gray);
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .ai-faq-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
  }
  .ai-faq-header p {
    font-size: 16px;
  }
  .ai-faq-header {
    margin-bottom: 40px;
  }
}

/* ACCORDION GRID */
.ai-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* Centered twin button in FAQ CTA
   (only affects bottom section) */
.ai-faq-cta {
  text-align: center;
}

.ai-faq-cta .ai-btn-wrapper {
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ai-faq-cta .ai-btn-border {
  margin-left: auto;
  margin-right: auto;
}

/* ACCORDION ITEM */
.ai-faq-item {
  background: var(--faq-white);
  border: 1px solid var(--faq-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-faq-item:hover {
  border-color: var(--faq-blue);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
}

.ai-faq-item.active {
  border-color: var(--faq-blue);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

/* QUESTION BUTTON */
.ai-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 28px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.ai-faq-question:hover {
  background-color: var(--faq-hover);
}

.ai-faq-question-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--faq-text-dark);
  line-height: 1.4;
  flex: 1;
}

.ai-faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--faq-bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ai-faq-item.active .ai-faq-icon {
  background: var(--faq-blue);
  transform: rotate(180deg);
}

.ai-faq-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--faq-text-gray);
  transition: stroke 0.3s ease;
}

.ai-faq-item.active .ai-faq-icon svg {
  stroke: white;
}

/* ANSWER PANEL */
.ai-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-faq-answer-content {
  padding: 0 28px 28px 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--faq-text-gray);
}

/* Open state */
.ai-faq-item.active .ai-faq-answer {
  max-height: 500px;
}

@media (max-width: 767px) {
  .ai-faq-question {
    padding: 20px;
  }
  .ai-faq-question-text {
    font-size: 16px;
  }
  .ai-faq-answer-content {
    padding: 0 20px 20px 20px;
    font-size: 15px;
  }
  .ai-faq-icon {
    width: 28px;
    height: 28px;
  }
}

/* BOTTOM CTA TILE */
.ai-faq-cta {
  margin-top: 60px;
  text-align: center;
  padding: 40px;
  background: var(--faq-bg-light);
  border-radius: 20px;
  border: 1px solid var(--faq-border);
}

.ai-faq-cta h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--faq-text-dark);
  margin: 0 0 12px 0;
}

.ai-faq-cta p {
  font-size: 16px;
  color: var(--faq-text-gray);
  margin: 0 0 24px 0;
}

.ai-faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--faq-blue);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 16px;
}

.ai-faq-cta-btn:hover {
  background: #1e50bd;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

@media (max-width: 767px) {
  .ai-faq-cta {
    margin-top: 40px;
    padding: 32px 24px;
  }
  .ai-faq-cta h3 {
    font-size: 20px;
  }
}

/* Mobile-only: center tile + full-width AI CTA button */
@media (max-width: 640px) {
  .ai-faq-cta {
    width: 100%;
    max-width: 480px;
    margin: 24px auto 0;
    padding: 16px 18px 18px;
  }

  .ai-faq-cta .ai-btn-wrapper {
    width: 100%;
    align-items: stretch;
  }

  .ai-faq-cta .ai-btn-border,
  .ai-faq-cta .ai-btn-gap,
  .ai-faq-cta .ai-cta-btn {
    width: 100%;
  }

  .ai-faq-cta .ai-cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 20px;
    text-align: center;
    white-space: nowrap;
  }
}
/* ================================
   MOBILE SPACING TUNE-UP
   (phones only, leave tablet/desktop as-is)
=================================== */
@media (max-width: 767px) {
  /* Booking / calendar hero */
  #ai-booking-production {
    padding: 48px 0 40px;
  }
  .ai-grid-prod {
    gap: 40px;
  }

  /* Templates / Builder section */
  #ai-builder-section {
    padding: 48px 0;
  }
  .ai-header-group {
    margin-bottom: 28px;
  }
  .ai-toggle-wrapper {
    margin-bottom: 32px;
  }

  /* Pricing */
  #ai-pricing-section-isolated {
    padding: 48px 0;
  }
  .ai-pricing-head p {
    margin-bottom: 20px;
  }
  .ai-pricing-toggle-wrapper {
    margin-bottom: 18px;
  }
  .ai-pricing-foot {
    margin-top: 40px;
  }

  /* Handoff / live transfer section */
  #ai-handoff-polish {
    padding: 48px 0;
  }
  .ai-ho-grid {
    gap: 20px;
  }

  /* FAQ */
  #ai-faq-section {
    padding: 48px 0;
  }
  .ai-faq-header {
    margin-bottom: 32px;
  }
}
/* FIX: keep full-width sections, but add safe side padding so nothing touches screen edges */
@media (max-width: 991px){
  #ai-builder-section,
  #ai-pricing-section-isolated{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
.rev-magic-letter{
  display: inline-block;
  vertical-align: baseline;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
/* ===========================================================
   CRO INPUT VISIBILITY (visible on open, stronger on focus)
=========================================================== */

/* Make the email field clearly visible even before focus */
#revsys-popup .rev-inline-form input {
  border: 2px solid rgba(99, 102, 241, 0.45) !important; /* stronger default border */
  background: rgba(255, 255, 255, 0.98) !important;

  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.10), /* subtle always-on glow */
    0 10px 24px rgba(15, 23, 42, 0.08) !important; /* gentle depth */

  transition: border-color 160ms ease, box-shadow 160ms ease;
}

/* Placeholder clarity */
#revsys-popup .rev-inline-form input::placeholder {
  color: rgba(71, 85, 105, 0.70);
}

/* Strong modern focus ring */
#revsys-popup .rev-inline-form input:focus,
#revsys-popup .rev-inline-form input:focus-visible {
  outline: none !important;
  border-color: rgba(99, 102, 241, 0.85) !important;

  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.22),
    0 14px 30px rgba(15, 23, 42, 0.12) !important;
}

#revsys-popup .rev-input-group {
  border-radius: 12px;
}

@media (hover: none) and (pointer: coarse) {
  #revsys-popup .rev-inline-form input {
    font-size: 16px !important;
  }
}
/* PATCH: Force Modal Above Everything (Fixes Nav Conflict) */
#revsys-popup {
  z-index: 2147483647 !important;
}
/* ============================
   SMART GRADIENT BUTTON
============================ */
.rev-submit-btn {
  width: 100%;
  height: 52px;
  border-radius: 12px; /* Slightly rounder = more modern */
  border: none;
  
  /* The "Smart" AI Gradient */
  background-image: linear-gradient(
    110deg,
    #2563EB 0%,   /* Blue */
    #9333EA 50%,  /* Purple */
    #06B6D4 100%  /* Cyan */
  );
  background-size: 200% auto; /* Allows movement */
  
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); /* Colored shadow glow */
}

/* Hover: Shift the gradient for a "live" feel */
.rev-submit-btn:hover {
  background-position: right center;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.rev-submit-btn:active {
  transform: translateY(1px);
}
/* ============================
   SMART INPUT FOCUS
============================ */
#revsys-popup .rev-inline-form input {
  transition: all 0.3s ease;
  border: 1.5px solid #e5e7eb; /* Default light gray */
}
/* ============================
   CRO WIN: Demo Play Button Pulse
============================ */
.rev-demo-play {
  /* Existing styles remain, just add this animation */
  animation: revPlayPulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(32, 32, 32, 0.7); /* Starts dark */
}

.rev-demo-play:hover {
  animation: none; /* Stop pulsing on hover */
  transform: scale(1.05);
}

@keyframes revPlayPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(32, 32, 32, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(32, 32, 32, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(32, 32, 32, 0);
  }
}
/* ============================
   SMART MODAL HEADER (Zero Height Cost)
============================ */

/* 1. The Speed Badge (Docked Top-Left) */
.rev-speed-badge:not(.rev-pill) {
  position: absolute; /* Takes it out of the flow */
  top: 14px;
  left: 16px;
  z-index: 10;
  
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  color: #4338ca;
  font-size: 10px; /* Slightly smaller for compact fit */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(199, 210, 254, 0.5);
}

/* 2. Tighter Logo Spacing */
#revsys-popup .popup-logo {
  max-width: 32px;
  height: auto;
  margin: 0 auto 10px; /* Reduced from 16px to save vertical space */
  display: block;
}

/* 3. Bigger, Smart Headline */
.revsys-modal-title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
  margin-bottom: -6px;
  margin-top: -4px;
  letter-spacing: -0.02em;
}

/* 4. The Gradient Text */
.rev-modal-gradient {
  background-image: linear-gradient(
    135deg,
    #2563EB 0%,
    #9333EA 50%,
    #06B6D4 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Mobile Tweak: Ensure badge doesn't hit logo on tiny phones */
@media (max-width: 380px) {
  .rev-speed-badge {
    padding: 3px 8px;
    font-size: 9px;
    left: 12px;
    top: 16px;
  }
}

@media (max-width: 980px) {
.rev-headline {
  margin-bottom: 0px !important;
 }
}
 /* ADD THIS TO THE VERY BOTTOM OF CSS FILE */
@media (max-width: 900px) {
  
  /* 1. Shrink Logo */
  .rev-nav-logo img {
    height: 28px !important; 
  }

  /* 2. Compact "Pill" CTA Button */
  .rev-nav-cta {
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }

  /* 3. Reduce Bar Vertical Padding */
  .rev-nav-inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
} 
/* Tighten gap between Subheadline and CTA Button on Mobile */
@media (max-width: 640px) {
  .rev-headline-block {
    margin-bottom: 10px !important; /* Reduces external container gap (was 20px) */
  }
  .rev-subheadline {
    margin-bottom: 16px !important;  /* Reduces text paragraph gap (was 22px) */
  }
}
/* ===========================================================
   THE ULTIMATE CRAWLER (CINEMA GRADE - FINAL POLISH)
=========================================================== */
.rev-crawler-ultimate {
  background-color: #F8FAFC; 
  padding: 40px 20px 60px 20px; 
  font-family: 'Inter', sans-serif;
  cursor: default; /* Section is static */
  position: relative;
  overflow: hidden;
}

.rev-ultimate-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* --- 1. Header --- */
.rev-ultimate-header {
  margin-bottom: 32px; 
}

/* Global Pill Style applied */
.rev-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px; 
  border-radius: 99px;
  background: white;
  border: 1px solid transparent; 
  background-image: linear-gradient(white, white), linear-gradient(90deg, #2563EB, #9333EA, #F59E0B);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  margin-bottom: 24px;
}

.rev-badge-dot {
  width: 6px; height: 6px; background: #4338ca; border-radius: 50%; position: relative;
}
.rev-badge-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid #4338ca; opacity: 0; animation: revPulse 2s infinite;
}

.rev-ultimate-header h2 {
  font-size: 48px; font-weight: 800; color: #111827; letter-spacing: -0.03em;
  margin: 0 0 16px 0; line-height: 1.1;
}

.rev-ai-gradient {
  background: linear-gradient(to right, #2563EB, #9333EA, #06B6D4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: inline-block;
}

.rev-ultimate-header p {
  font-size: 18px; color: #4b5563; line-height: 1.6; max-width: 600px; margin: 0 auto;
}

/* --- 2. The "App Window" (The Tile) --- */
.rev-app-window {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  background: #020617; /* Midnight Black */
  border-radius: 24px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 25px 60px -12px rgba(0, 0, 0, 0.6), 
    0 0 100px -20px rgba(79, 70, 229, 0.15); /* Purple Glow */
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer; /* Tile is clickable */
  
  /* FIXED: Vertical Centering */
  display: flex;
  flex-direction: column;
  min-height: 380px; 
}

.rev-crawler-ultimate:hover .rev-app-window {
  transform: translateY(-4px);
  box-shadow: 
    0 0 0 1px rgba(139, 92, 246, 0.3),
    0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

/* Effects */
.rev-app-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  z-index: 0;
}

.rev-scan-beam {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
  box-shadow: 0 0 15px 2px rgba(139, 92, 246, 0.5);
  animation: revScanDown 4s ease-in-out infinite; z-index: 1; opacity: 0.5;
}
@keyframes revScanDown { 
  0% { top: 0%; opacity: 0; } 
  50% { opacity: 1; } 
  100% { top: 100%; opacity: 0; } 
}

/* Inner Layout - VERTICAL CENTERING LOGIC */
.rev-app-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Forces content to middle */
  
  /* Adjusted Padding for visual balance */
  padding-top: 60px;
  padding-bottom: 80px;
  padding-left: 20px;
  padding-right: 20px;
  gap: 36px;
}

/* --- Command Bar (Input) --- */
.rev-command-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px 8px 8px 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  
  /* FIXED: Strict Width Alignment */
  width: 100%;
  max-width: 580px; 
  margin: 0 auto; 
}

.rev-crawler-ultimate:hover .rev-command-bar {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.rev-cmd-icon{
  color: #64748B;
  flex: 0 0 16px;          /* fixed slot so it never collapses */
  width: 16px;
  height: 16px;
  display: inline-flex;     /* behaves nicely inside the text row */
  align-items: center;
  justify-content: center;
  margin-right: 10px;       /* slightly tighter than 16 */
}
/* Ensure the cmd row can actually shrink */
.rev-cmd-text{
  min-width: 0;             /* CRITICAL: allows children to shrink */
}

/* Clamp + fade the URL portion so it can't collide */
/* Clamp URL only when needed (base = ellipsis, no fade) */
.rev-cmd-url{
  color: #E2E8F0;
  font-weight: 600;

  min-width: 0;              /* allow shrink */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;     /* prevents weird flex sizing */
}


.rev-cmd-url.rev-is-truncated{
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
}

.rev-cmd-text {
  flex: 1 1 auto;
  min-width: 0;              /* critical */
  justify-content: flex-start;
  font-family: 'Courier New', monospace;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 1px;
}
.rev-cmd-protocol { color: #475569; }

.rev-cmd-cursor { color: #8B5CF6; animation: revBlink 1s step-end infinite; font-weight: 700; margin-left: 2px; }
@keyframes revBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.rev-cmd-protocol,
.rev-cmd-cursor{
  flex: 0 0 auto;
}

/* --- PREMIUM GRADIENT BUTTON --- */
.rev-cmd-btn {
  position: relative;
  /* Hyper-Glow Gradient */
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rev-cmd-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
  filter: brightness(1.1);
}

.rev-cmd-btn .rev-arrow { font-size: 16px; line-height: 1; }

/* --- Terminal Stack Area --- */
.rev-terminal-area {
  position: relative;
  /* Ensures stack doesn't collapse */
  min-height: 90px;
}

.rev-terminal-label {
  font-size: 11px;
  color: #64748B;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: left;
  
  /* FIXED: Strict Width Alignment to match Input */
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4px; /* Tiny nudge to align with input text start */
}

.rev-stack-wrapper.ultimate-stack {
  position: relative;
  width: 100%;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  height: 80px;
}

/* CARD STYLING */
.rev-stack-card.ultimate-card {
  width: 100%;
  /* FIXED: Strict Width Alignment */
  max-width: 580px;
  height: 76px;
  
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  
  display: flex;
  align-items: center;
  padding: 0 24px;
  
  /* Centering Logic for Desktop */
  position: absolute;
  top: 0; 
  left: 50%;
  margin-left: -290px; /* -50% of 580px width */
  
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.rev-stack-icon.ultimate-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #94A3B8; margin-right: 18px; flex-shrink: 0;
}

.rev-card-content { flex: 1; text-align: left; display: flex; flex-direction: column; justify-content: center; }
.rev-stack-title { color: #E2E8F0; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.rev-stack-meta { color: #64748B; font-size: 13px; }

/* Active Card State */
.rev-stack-card[data-state="1"] {
  transform: translateY(0) scale(1);
  opacity: 1; z-index: 10;
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(139, 92, 246, 0.15);
}
.rev-stack-card[data-state="1"] .rev-stack-icon {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white; border-color: transparent;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Spinner */
.rev-spinner-ring {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1); border-top-color: #8B5CF6; border-radius: 50%;
  animation: revSpin 0.8s linear infinite;
}
@keyframes revSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Stack Animation Layers */
.rev-stack-card[data-state="2"] { transform: translateY(16px) scale(0.96); opacity: 0.6; z-index: 9; }
.rev-stack-card[data-state="3"] { transform: translateY(32px) scale(0.92); opacity: 0.3; z-index: 8; }
.rev-stack-card[data-state="4"] { transform: translateY(48px) scale(0.88); opacity: 0; z-index: 1; }
.rev-stack-card[data-state="0"] { transform: translateY(-40px) scale(1.04); opacity: 0; z-index: 11; filter: blur(4px); }

/* --- TABLET & MOBILE FIXES --- */
@media (max-width: 980px) {

  /* Reduce Section Padding */
  .rev-crawler-ultimate { padding: 30px 16px 50px 16px; }
  .rev-ultimate-header h2 { font-size: 32px; }

  .rev-app-window { min-height: auto; } /* Let content dictate height on mobile */

  .rev-app-content {
    /* Tighter Internal Padding for Mobile */
    padding: 35px 20px 50px 20px;
    gap: 30px;
  }

  /* Slightly reduce terminal text sizing to avoid collisions */
  .rev-cmd-protocol,
  .rev-cmd-url{
    font-size: 15px;
  }

  /* FLUID WIDTH RESET (Fixes the left-shift) */
  .rev-command-bar,
  .rev-terminal-label,
  .rev-stack-card.ultimate-card {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Reset Absolute Positioning Center for Cards */
  .rev-stack-card.ultimate-card {
    left: 0;
    padding: 0 16px;
  }

  /* Mobile Command Bar Layout — keep icon INLINE, wrap button below */
  .rev-command-bar {
    flex-direction: row;     /* IMPORTANT: undo column */
    flex-wrap: wrap;         /* allows button to drop below */
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    gap: 12px;
  }

  /* keep icon visible + aligned */
  .rev-cmd-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 0;
    margin-right: 10px;
  }

  /* keep the url row left-aligned and shrinkable */
  .rev-cmd-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* IMPORTANT: no centering */
    gap: 1px;
    margin-bottom: 0;
  }

  /* force CTA button onto its own line */
  .rev-cmd-btn {
    flex: 1 0 100%;
    width: 100%;
    justify-content: center;
  }

  .rev-stack-title { font-size: 13px; }
  .rev-stack-meta { display: none; }
}

/* 1. Force standard arrow cursor on the main container and window */
.rev-crawler-ultimate,
.rev-crawler-ultimate .rev-app-window,
.rev-crawler-ultimate .rev-app-content {
  cursor: default !important;
}

/* 2. Only show the "Hand Pointer" on the actual clickable triggers */
.rev-crawler-ultimate .rev-cmd-text,
.rev-crawler-ultimate .rev-cmd-btn {
  cursor: pointer !important;
}

/* When voices label is upgraded to rev-pill, ensure layout matches pill */
.rev-voices-label.rev-pill{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 24px;
  width: max-content;
}
/* ===========================================================
   QUICK TWEAK: GLOBE ICON SIZE
   (Paste at the bottom of your CSS)
=========================================================== */

.rev-crawler-ultimate .rev-cmd-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px; 
}

.rev-crawler-ultimate .rev-cmd-icon svg {
  width: 100%;
  height: 100%;
  /* 🛡️ PRO FIX: Ensures SVG respects dimensions */
  display: block; 
}

/* ===========================================================
   QUICK FIX: HIDE ICON ON VERY SMALL SCREENS
=========================================================== */
@media (max-width: 340px) {
  .rev-crawler-ultimate .rev-cmd-icon {
    display: none !important;
  }
}

.ai-cta-btn { cursor: pointer; }

/* =========================================
   PREMIUM CARD CSS (Production Final)
   with Wider Layout & Mobile Scroll Guardrails
========================================= */

.rev-premium-card {
  /* 🛡️ SAFETY: Stops horizontal scroll caused by padding/border */
  box-sizing: border-box;
  
  width: 100%;
  /* ⬇️ UPDATED: Wider card for desktop */
  max-width: 600px; 
  height: auto; 
  min-height: 560px;
  
  background: #0F172A; /* Slate 900 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(15, 23, 42, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 0; 
  overflow: hidden;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rev-premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(99, 102, 241, 0.3);
}

/* --- HEADER (LOCKED) --- */
.rev-card-header {
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 68px; 
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center; 
  flex-shrink: 0;
  z-index: 10;
  
  /* 🛡️ SAFETY: Prevents header from pushing page width */
  overflow: hidden;
}

/* 🟢 UPDATED: Force Single Row + Scroll + Flex Shrink */
.rev-demo-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  
  /* 🛡️ SAFETY: Allows container to shrink below content size (enables scroll) */
  flex: 1;
  min-width: 0;
  
  /* Force single row */
  flex-wrap: nowrap !important;
  
  /* Allow horizontal scroll if needed */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  
  /* Reset margins just in case */
  margin: 0;
  padding: 0;
}

/* ✨ PREMIUM FIX: Center on Desktop, Keep Left on Mobile */
@media (min-width: 640px) {
  .rev-demo-tabs {
    justify-content: center;
  }
}

/* Hide scrollbar for Chrome/Safari */
.rev-demo-tabs::-webkit-scrollbar { 
  display: none; 
}

/* 🟢 UPDATED: Fix Button Sizing */
.rev-demo-tab-btn {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
  padding: 22px 8px; 
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-family: inherit;
  
  /* 🛡️ SAFETY: Prevent 50% width override & wrapping */
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap;
}

.rev-demo-tab-btn:hover { color: #94A3B8; }

.rev-demo-tab-btn.rev-active {
  /* 🧹 CLEANUP: Kill the old "muddy" background */
  background: transparent !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.rev-demo-tab-btn.rev-active::after {
  content: "";
  position: absolute;
  bottom: 0px; 
  left: 0; right: 0;
  height: 3px; 
  background: #3B82F6;
  box-shadow: 0 -2px 10px rgba(59, 130, 246, 0.6);
  border-radius: 3px 3px 0 0;
}

/* --- PANEL LAYOUT --- */
.rev-demo-panel {
  box-sizing: border-box;
  padding: 24px 28px 0 28px;
  display: none;
  flex-direction: column;
  height: 100%;
  flex: 1;
}
.rev-demo-panel.rev-active { display: flex; }

/* --- AUDIO HUD (LOCKED) --- */
.rev-player-hud {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px; 
  background: rgba(255,255,255,0.03);
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  
  /* 💎 PREMIUM FIX: Constrain width & Center */
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.rev-demo-play {
  width: 44px; height: 44px; 
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s;
  flex-shrink: 0;
  outline: none;
}
.rev-demo-play:hover { transform: scale(1.05); }

.rev-demo-play svg { width: 18px; height: 18px; fill: white; display: block; }
.rev-demo-play .icon-pause { display: none; }
.rev-demo-panel.rev-demo-playing .icon-play { display: none; }
.rev-demo-panel.rev-demo-playing .icon-pause { display: block; }

.rev-audio-visualizer {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px; 
}

.rev-audio-visualizer .bar {
  flex: 1;
  background: #334155;
  border-radius: 4px;
  height: 4px;
  transition: height 0.1s ease;
  min-height: 4px;
}

.rev-demo-panel.rev-demo-playing .rev-audio-visualizer .bar {
  background: #60A5FA;
  animation: revWave 0.8s ease-in-out infinite;
}

.rev-audio-visualizer .bar:nth-child(odd) { animation-duration: 0.6s; }
.rev-audio-visualizer .bar:nth-child(2n) { animation-duration: 0.9s; }
.rev-audio-visualizer .bar:nth-child(3n) { animation-duration: 1.1s; }

@keyframes revWave {
  0%, 100% { height: 4px; opacity: 0.5; }
  50% { height: 100%; opacity: 1; background: #A78BFA; box-shadow: 0 0 8px rgba(167, 139, 250, 0.4); }
}

.rev-demo-time {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap; 
  min-width: 75px;
  text-align: right;
  flex-shrink: 0;
}

/* --- CHAT AREA (LOCKED) --- */
.rev-demo-chat {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  min-height: 0;
  
  /* 💎 PREMIUM FIX: Constrain width & Center */
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.rev-chat-meta {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px; 
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 16px; 
  flex-shrink: 0;
}

.rev-ai-icon-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}

.rev-agent-info .name { font-size: 14px; font-weight: 600; color: #F1F5F9; }
.rev-agent-info .status { font-size: 11px; color: #10B981; margin-top: 2px; }

.rev-chat-scroll-area {
  height: 230px; 
  overflow-y: auto; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  gap: 14px; 
  
  mask-image: linear-gradient(
    to bottom, 
    transparent 0px, 
    black 15px, 
    black calc(100% - 15px), 
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom, 
    transparent 0px, 
    black 15px, 
    black calc(100% - 15px), 
    transparent 100%
  );
  
  padding-top: 0px; 
  padding-bottom: 15px;
  
  scrollbar-width: none; 
  -ms-overflow-style: none;
}
.rev-chat-scroll-area::-webkit-scrollbar { display: none; }

.rev-chat-spacer { margin-top: auto; }

.rev-bubble {
  max-width: 90%;
  padding: 12px 18px; 
  font-size: 13px;
  line-height: 1.5;
  border-radius: 14px;
  animation: slideUpFade 0.4s ease-out forwards;
  flex-shrink: 0; 
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.rev-bubble.ai {
  background: rgba(30, 41, 59, 0.6);
  color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 2px;
  margin-right: auto;
}

.rev-bubble.user {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  border-bottom-right-radius: 2px;
  margin-left: auto;
  text-align: right;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* --- FOOTER --- */
.rev-footer-group {
  box-sizing: border-box;
  margin-top: auto;
  padding-top: 0; 
  padding-bottom: 24px;
  flex-shrink: 0;
  background: #0F172A; 
  position: relative;
  z-index: 5;
  
  /* 💎 PREMIUM FIX: Constrain width & Center */
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.rev-demo-progress-line {
  height: 3px; 
  background: rgba(255,255,255,0.1);
  margin-top: 12px;
  margin-bottom: 20px;
  border-radius: 2px;
  overflow: hidden;
}
.rev-demo-progress-fill {
  width: 0%;
  height: 100%;
  background: #3B82F6;
  transition: width 0.1s linear;
}

.rev-demo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-indicator {
  font-size: 11px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.live-indicator::before {
  content:""; width:6px; height:6px; background:#EF4444; border-radius:50%;
  box-shadow: 0 0 5px #EF4444;
}

.rev-action-btn {
  background: rgba(255,255,255,0.1);
  color: white !important;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.05);
}
.rev-action-btn:hover { 
  background: rgba(255,255,255,0.2); 
  border-color: rgba(255,255,255,0.2);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .rev-premium-card { min-height: 520px; height: auto; }
  .rev-demo-tabs { 
    /* Reinforce horizontal scroll on strictly mobile devices if needed */
    justify-content: flex-start; 
    padding-bottom: 0; 
  }
  .rev-demo-tab-btn { padding: 22px 14px; }
  .rev-chat-scroll-area { height: 200px; }
}
/* IDLE PULSE (grow-in-place, no vertical movement) */
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar{
  animation: revIdleGrow 1.45s ease-in-out infinite;
  opacity: 0.70;
  transform: none; /* ensure no translate happens */
  will-change: height, opacity, filter;
}

/* Stagger stays the same */
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(1)  { animation-delay: 0s; }
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(2)  { animation-delay: 0.08s; }
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(3)  { animation-delay: 0.16s; }
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(4)  { animation-delay: 0.24s; }
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(5)  { animation-delay: 0.32s; }
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(6)  { animation-delay: 0.40s; }
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(7)  { animation-delay: 0.48s; }
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(8)  { animation-delay: 0.56s; }
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(9)  { animation-delay: 0.64s; }
.rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar:nth-child(10) { animation-delay: 0.72s; }

@keyframes revIdleGrow{
  0%, 100% { height: 4px;  opacity: 0.60; filter: brightness(1); }
  50%      { height: 4px; opacity: 1;    filter: brightness(1.25); }
}

/* Hard-disable while playing */
.rev-demo-panel.rev-demo-playing .rev-audio-visualizer .bar{
  animation: none;
  height: 4px;      /* your normal baseline */
  opacity: 1;
  filter: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rev-demo-panel:not(.rev-demo-playing) .rev-audio-visualizer .bar{
    animation: none;
    height: 4px;
    opacity: 1;
    filter: none;
  }
}
/* --- HOTFIX (FINAL): prevent iOS/WebKit blank chat after tab swap
   - Scope ONLY to the demo card (avoids affecting other chat sections)
   - Remove mask (fixes blanking)
   - Recreate fades with ABSOLUTE overlays (no layout/height change)
   - Match the card's dark background (#0F172A) (no white "glow ring")
------------------------------------------------------------ */
.rev-premium-card .rev-chat-scroll-area{
  -webkit-mask-image: none !important;
  mask-image: none !important;
  position: relative; /* anchor overlays */
}

.rev-premium-card .rev-chat-scroll-area::before,
.rev-premium-card .rev-chat-scroll-area::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
  z-index: 10;
}

.rev-premium-card .rev-chat-scroll-area::before{
  top: 0;
  background: linear-gradient(to bottom, #0F172A, rgba(15,23,42,0));
}

.rev-premium-card .rev-chat-scroll-area::after{
  bottom: 0;
  background: linear-gradient(to top, #0F172A, rgba(15,23,42,0));
}
/* Make the NEW <button class="rev-cmd-text"> behave like the old non-button element */
#rev-landing .rev-command-bar button.rev-cmd-text{
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

#rev-landing .rev-command-bar button.rev-cmd-text:focus,
#rev-landing .rev-command-bar button.rev-cmd-text:focus-visible{
  outline: 0;
}
/* ===========================================================
   HOTFIX APPEND (SCOPED): Google Button Not Cropped + Chat Fade Stays Put
=========================================================== */

/* -----------------------------------------------------------
   FIX #1: GOOGLE BUTTON CROPPED
   Root cause (no guess): modal has 26px L/R padding, but Google is rendering width:280.
   On narrow screens the inner content width becomes <280, so the right side gets clipped.
   This cancels the modal padding ONLY for the Google render container.
----------------------------------------------------------- */
#revsys-popup .revsys-modal-shell .rev-google-wrap #rev-google-button-container {
  /* Cancel the shell’s 26px + 26px padding for this one row */
  width: calc(100% + 52px) !important;
  margin-left: -26px !important;
  margin-right: -26px !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  overflow: visible !important; /* prevents any edge clipping */
}

/* Center whatever Google injects (div/iframe) */
#revsys-popup .revsys-modal-shell .rev-google-wrap #rev-google-button-container > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

#revsys-popup .revsys-modal-shell .rev-google-wrap #rev-google-button-container iframe {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
}

/* ===========================================================
   HOTFIX: Pinned chat edge fades (entry/exit only)
   Restore mask fade + disable overlay pseudo-elements
=========================================================== */
.rev-premium-card .rev-chat-scroll-area {
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 10%,
    rgba(0,0,0,1) 90%,
    rgba(0,0,0,0) 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 10%,
    rgba(0,0,0,1) 90%,
    rgba(0,0,0,0) 100%
  ) !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-size: 100% 100% !important;
  mask-size: 100% 100% !important;

  /* repaint/compositor nudge to reduce “blank on tab swap” risks */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Kill the overlay fades added by the previous hotfix */
.rev-premium-card .rev-chat-scroll-area::before,
.rev-premium-card .rev-chat-scroll-area::after {
  content: none !important;
}
/* --- FINAL TWEAK: Fix text alignment inside blue user bubbles --- */
/* Keeps bubble on the right, but forces text inside to read left-to-right */
.rev-premium-card .rev-bubble.user {
  text-align: left !important;
}
/* ===========================================================
   TINY PHONES (<360px): a little more usable width
   (scope: horizontal padding only)
=========================================================== */
@media (max-width: 359px){

  /* More usable modal width inside the viewport */
  #revsys-popup{
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* More usable content width inside the shell (was 26px L/R) */
  #revsys-popup .revsys-modal-shell{
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* Keep the Google render "padding cancel" in sync with the new shell padding */
  #revsys-popup .revsys-modal-shell .rev-google-wrap #rev-google-button-container{
    width: calc(100% + 44px) !important;
    margin-left: -22px !important;
    margin-right: -22px !important;
  }
}
/* Mobile-only: tighten legal spacing */
@media (max-width: 767px){
  .revsys-modal-legal{
    margin-top: 4px !important;
    margin-bottom: 0 !important;
  }
}

/* === HERO SPACING PARITY (fix default h1 margins) === */
.rev-headline{
  margin-top: 0 !important;
  margin-bottom: 0 !important; /* keep L/R margins intact */
  padding-bottom: 10px !important;
}

/* prod pill uses a tall line-height (yes, weird, but match it) */
.rev-speed-badge{
  line-height: 23.8px !important;
}

/* === GLOBAL TYPOGRAPHY BASELINE (MATCH PROD) === */
html, body{
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto !important; /* match prod */
}

/* Only inherit family for form controls — DO NOT inherit size/weight */
button, input, select, textarea{
  font-family: inherit !important;
}

/* === NAV CTA (MATCH PROD) === */
.rev-nav-cta{
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 600 !important;
  line-height: normal !important;

  -webkit-appearance: none !important;
  appearance: none !important;
  border: 0 !important;

  height: 37px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

/* === FINAL: PROD LINE-HEIGHT PARITY === */
html, body{
  line-height: 23.8px !important; /* prod */
}

/* prod uses the same rhythm inside the chat demo */
.rev-demo-chat{
  line-height: 23.8px !important;
}

/* === FINAL: NAV CTA (MOBILE + DESKTOP) === */

/* Desktop baseline (let it be larger) */
@media (min-width: 901px){
  .rev-nav-cta{
    padding: 12px 22px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    height: auto !important;       /* don't force mobile height */
    display: block !important;     /* match prod snapshots */
  }
}

/* Mobile baseline (match prod mobile dump) */
@media (max-width: 900px){
  .rev-nav-cta{
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    height: 37px !important;
    display: block !important;     /* prod showed block */
  }
}

/* ===========================================================
   LAST-MILE PARITY PATCHES (KEEP THIS BLOCK AT THE VERY END)
   Desktop-only tweaks to avoid breaking mobile parity
=========================================================== */
@media (min-width: 901px) {
  /* 1) Build-your-agent section: add a touch more header->subheader space */
  #ai-builder-section .ai-header-group h2 {
    margin-bottom: 20px !important;
  }

  /* 2) Demo card header: restore breathing room between name + status line */
  .rev-agent-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .rev-agent-info .status {
    margin-top: 0 !important;
  }
}

/* ===========================================================
   FINAL POPUP MODAL MICRO-SPACING (append at very bottom)
=========================================================== */
#revsys-popup .popup-logo{
  margin-bottom: 18px !important;   /* slightly more breathing room above title */
}

#revsys-popup .revsys-modal-title{
  margin-top: -10px !important;     /* was -14px in base -> increases logo->title spacing */
  margin-bottom: 0px !important;
}

#revsys-popup .revsys-modal-subline{
  margin-top: 8px !important;       /* reduce title->subline gap (kills default p top margin vibes) */
}

/* ===========================================================
   GOOGLE BUTTON: prevent desktop downscaling (keeps text weight/size)
=========================================================== */
@media (min-width: 481px){
  #revsys-popup .rev-google-wrap #rev-google-button-container{
    min-width: 280px !important;
  }

  #revsys-popup .rev-google-wrap #rev-google-button-container iframe{
    width: 280px !important;        /* lock the native size */
    max-width: none !important;     /* prevents shrinking/scaling */
  }
}

/* FINAL MODAL MICRO TUNE (marker) */
#revsys-popup .popup-logo{
  margin-bottom: 20px !important; /* was 18px -> +2px gap */
}
#revsys-popup .revsys-modal-subline{
  margin-top: 6px !important;     /* was 8px -> -2px gap */
}

/* FINAL GOOGLE BUTTON SIZE LOCK (desktop only) */
@media (min-width: 481px){
  #revsys-popup .revsys-modal-shell .rev-google-wrap #rev-google-button-container{
    width: 280px !important;
    min-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #revsys-popup .revsys-modal-shell .rev-google-wrap #rev-google-button-container iframe{
    width: 280px !important;
    min-width: 280px !important;
    max-width: none !important; /* overrides the max-width:100% shrink behavior */
  }
}

/* FINAL GOOGLE BUTTON WIDTH PARITY (desktop) */
@media (min-width: 481px){
  #revsys-popup .revsys-modal-shell .rev-google-wrap #rev-google-button-container,
  #revsys-popup .revsys-modal-shell .rev-google-wrap #rev-google-button-container > div,
  #revsys-popup .revsys-modal-shell .rev-google-wrap #rev-google-button-container iframe{
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}