/* AG-CONVERSION-V1 */

:root{
  --agc-bg:#f7f8fc;
  --agc-card:#fff;
  --agc-text:#171a2b;
  --agc-muted:#676b7e;
  --agc-line:#e6e8f0;
  --agc-brand:#635bff;
  --agc-brand2:#4857e8;
  --agc-green:#20a464;
  --agc-gold:#d89519;
  --agc-shadow:0 18px 50px rgba(35,39,70,.13);
}

/* ==========================================================
   HOMEPAGE: main choice immediately under header
   ========================================================== */

.agcv1-home{
  background:
    radial-gradient(circle at 6% 0%,rgba(99,91,255,.10),transparent 28%),
    radial-gradient(circle at 95% 10%,rgba(32,164,100,.08),transparent 27%),
    #fff;
  border-bottom:1px solid var(--agc-line);
  padding:24px 0 28px;
}

.agcv1-home-inner{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
}

.agcv1-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 10px;
  border-radius:999px;
  background:#efefff;
  color:#5049d9;
  font:700 12px/1.2 Onest,system-ui,sans-serif;
  letter-spacing:.02em;
}

.agcv1-home h2{
  margin:10px 0 6px;
  color:var(--agc-text);
  font:800 clamp(24px,4vw,38px)/1.12 Onest,system-ui,sans-serif;
  letter-spacing:-.035em;
}

.agcv1-home-lead{
  max-width:800px;
  margin:0 0 18px;
  color:var(--agc-muted);
  font:500 15px/1.55 Onest,system-ui,sans-serif;
}

.agcv1-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.agcv1-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:190px;
  padding:18px;
  border:1px solid var(--agc-line);
  border-radius:18px;
  background:var(--agc-card);
  text-decoration:none;
  color:var(--agc-text);
  box-shadow:0 5px 18px rgba(35,39,70,.055);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}

.agcv1-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(35,39,70,.11);
  border-color:#cacdf0;
}

.agcv1-card.agcv1-video{
  background:linear-gradient(150deg,#f5f1ff,#fff 67%);
  border-color:#d7cef7;
}

.agcv1-video .agcv1-ico{
  background:#eee8ff;
}

.agcv1-card.agcv1-pro{
  background:linear-gradient(150deg,#fffaf0,#fff 67%);
  border-color:#f0d69f;
}

.agcv1-ico{
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  margin-bottom:12px;
  border-radius:13px;
  background:#f0f1ff;
  font-size:22px;
}

.agcv1-pro .agcv1-ico{
  background:#fff0c8;
}

.agcv1-card strong{
  display:block;
  margin-bottom:5px;
  font:800 17px/1.25 Onest,system-ui,sans-serif;
}

.agcv1-card p{
  margin:0 0 14px;
  color:var(--agc-muted);
  font:500 13px/1.45 Onest,system-ui,sans-serif;
}

.agcv1-go{
  margin-top:auto;
  color:var(--agc-brand);
  font:800 13px/1.3 Onest,system-ui,sans-serif;
}

.agcv1-price{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-bottom:7px;
  color:#8b5c00;
  font:800 14px/1.3 Onest,system-ui,sans-serif;
}


/* ==========================================================
   SITEWIDE top strip
   ========================================================== */

.agcv1-strip{
  position:relative;
  z-index:20;
  border-bottom:1px solid var(--agc-line);
  background:#fff;
}

.agcv1-strip-inner{
  width:min(1180px,calc(100% - 24px));
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 0;
  overflow-x:auto;
  scrollbar-width:none;
}

.agcv1-strip-inner::-webkit-scrollbar{
  display:none;
}

.agcv1-strip-label{
  flex:0 0 auto;
  margin-right:3px;
  color:#777b8e;
  font:700 11px/1.2 Onest,system-ui,sans-serif;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.agcv1-chip{
  flex:0 0 auto;
  padding:8px 11px;
  border:1px solid var(--agc-line);
  border-radius:999px;
  background:#fff;
  color:#292d43;
  text-decoration:none;
  font:700 12px/1.2 Onest,system-ui,sans-serif;
  white-space:nowrap;
}

.agcv1-chip:hover{
  border-color:#aaaee0;
  background:#f8f8ff;
}

.agcv1-chip-pro{
  background:#fff8e8;
  border-color:#ead09b;
}


/* ==========================================================
   Human support
   ========================================================== */

.agcv1-chat-launch{
  position:fixed;
  z-index:10020;
  right:20px;
  bottom:82px;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:999px;
  padding:8px 14px 8px 8px;
  background:#fff;
  color:var(--agc-text);
  box-shadow:var(--agc-shadow);
  cursor:pointer;
  font-family:Onest,system-ui,sans-serif;
}

.agcv1-chat-avatar{
  position:relative;
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  border-radius:50%;
  background:linear-gradient(135deg,#635bff,#4555dd);
  color:#fff;
  font-size:21px;
}

.agcv1-chat-dot{
  position:absolute;
  right:1px;
  bottom:1px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:#8b90a3;
  border:2px solid #fff;
}

.agcv1-chat-copy{
  display:grid;
  text-align:left;
}

.agcv1-chat-copy b{
  font-size:13px;
  line-height:1.25;
}

.agcv1-chat-copy span{
  margin-top:2px;
  color:#717589;
  font-size:11px;
}

.agcv1-chat-panel{
  position:fixed;
  z-index:10030;
  right:20px;
  bottom:145px;
  width:min(360px,calc(100vw - 28px));
  overflow:hidden;
  border:1px solid var(--agc-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 70px rgba(27,31,57,.24);
  transform:translateY(12px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:.18s ease;
}

.agcv1-chat-panel.is-open{
  transform:none;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.agcv1-chat-head{
  display:flex;
  align-items:center;
  gap:11px;
  padding:16px;
  color:#fff;
  background:linear-gradient(135deg,#625aff,#4655e3);
}

.agcv1-chat-head-avatar{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:0 0 auto;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  font-size:20px;
}

.agcv1-chat-head-copy{
  display:grid;
  gap:2px;
  min-width:0;
}

.agcv1-chat-head-copy b{
  font:800 14px/1.2 Onest,system-ui,sans-serif;
}

.agcv1-chat-head-copy span{
  font:500 11px/1.35 Onest,system-ui,sans-serif;
  opacity:.88;
}

.agcv1-chat-close{
  margin-left:auto;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  color:#fff;
  cursor:pointer;
  font-size:20px;
}

.agcv1-chat-body{
  padding:16px;
}

.agcv1-chat-message{
  margin-bottom:14px;
  padding:12px 13px;
  border-radius:5px 15px 15px 15px;
  background:#f3f4fa;
  color:#373b50;
  font:500 13px/1.5 Onest,system-ui,sans-serif;
}

.agcv1-chat-actions{
  display:grid;
  gap:8px;
}

.agcv1-chat-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:11px 12px;
  border:1px solid var(--agc-line);
  border-radius:12px;
  color:#292d43;
  background:#fff;
  text-decoration:none;
  font:700 12px/1.3 Onest,system-ui,sans-serif;
}

.agcv1-chat-action:hover{
  background:#f8f8ff;
}

.agcv1-chat-human{
  margin-top:12px;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:12px;
  border-radius:12px;
  color:#fff;
  background:var(--agc-brand);
  text-decoration:none;
  font:800 13px/1.3 Onest,system-ui,sans-serif;
}


/* ==========================================================
   Lead magnet
   ========================================================== */

.agcv1-lead{
  position:fixed;
  z-index:10010;
  right:20px;
  bottom:155px;
  width:min(350px,calc(100vw - 28px));
  padding:17px;
  border:1px solid #d9dbed;
  border-radius:18px;
  background:#fff;
  box-shadow:var(--agc-shadow);
  opacity:0;
  transform:translateY(15px);
  transition:.2s ease;
}

.agcv1-lead.is-show{
  opacity:1;
  transform:none;
}

.agcv1-lead-close{
  position:absolute;
  top:8px;
  right:8px;
  width:30px;
  height:30px;
  border:0;
  border-radius:50%;
  background:#f3f4f8;
  cursor:pointer;
  color:#606477;
}

.agcv1-lead-badge{
  display:inline-block;
  margin-bottom:8px;
  padding:5px 8px;
  border-radius:999px;
  color:#15794a;
  background:#e9f8f0;
  font:800 11px/1.2 Onest,system-ui,sans-serif;
}

.agcv1-lead h3{
  margin:0 28px 6px 0;
  font:800 18px/1.25 Onest,system-ui,sans-serif;
  color:var(--agc-text);
}

.agcv1-lead p{
  margin:0 0 13px;
  color:var(--agc-muted);
  font:500 12px/1.5 Onest,system-ui,sans-serif;
}

.agcv1-lead-buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.agcv1-lead-primary,
.agcv1-lead-secondary{
  display:inline-flex;
  padding:10px 11px;
  border-radius:10px;
  text-decoration:none;
  font:800 12px/1.2 Onest,system-ui,sans-serif;
}

.agcv1-lead-primary{
  background:var(--agc-brand);
  color:#fff;
}

.agcv1-lead-secondary{
  background:#f2f3f8;
  color:#34384c;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:1150px){
  .agcv1-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .agcv1-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px){
  .agcv1-home{
    padding:17px 0 20px;
  }

  .agcv1-home-inner{
    width:min(100% - 20px,1180px);
  }

  .agcv1-grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .agcv1-card{
    min-height:166px;
    padding:13px;
    border-radius:14px;
  }

  .agcv1-card strong{
    font-size:14px;
  }

  .agcv1-card p{
    font-size:11px;
  }

  .agcv1-ico{
    width:37px;
    height:37px;
    font-size:18px;
  }

  .agcv1-chat-launch{
    right:12px;
    bottom:72px;
    padding:7px;
  }

  .agcv1-chat-copy{
    display:none;
  }

  .agcv1-chat-avatar{
    width:48px;
    height:48px;
  }

  .agcv1-chat-panel{
    right:8px;
    bottom:132px;
    width:calc(100vw - 16px);
    max-height:calc(100vh - 155px);
  }

  .agcv1-lead{
    left:8px;
    right:8px;
    bottom:135px;
    width:auto;
  }
}


/* ============================================================
   AG-SITECHAT-V1
   ============================================================ */

.agcv1-chat-messages{
  display:grid;
  gap:8px;
  max-height:225px;
  overflow:auto;
  margin:0 0 11px;
  padding:2px;
  scrollbar-width:thin;
}

.agcv1-sitechat-empty{
  padding:10px 12px;
  border-radius:12px;
  background:#f4f5f9;
  color:#626679;
  font:500 12px/1.45 Onest,system-ui,sans-serif;
}

.agcv1-site-msg{
  max-width:86%;
  padding:9px 11px;
  border-radius:13px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:500 12px/1.45 Onest,system-ui,sans-serif;
}

.agcv1-site-msg-client{
  justify-self:end;
  background:#625aff;
  color:#fff;
  border-bottom-right-radius:4px;
}

.agcv1-site-msg-staff{
  justify-self:start;
  background:#f1f2f7;
  color:#303448;
  border-bottom-left-radius:4px;
}

.agcv1-chat-form{
  display:flex;
  align-items:flex-end;
  gap:7px;
  margin-top:8px;
}

.agcv1-chat-input{
  box-sizing:border-box;
  width:100%;
  min-height:42px;
  max-height:100px;
  resize:none;
  padding:10px 11px;
  border:1px solid #d9dbe6;
  border-radius:11px;
  outline:0;
  color:#282c40;
  background:#fff;
  font:500 12px/1.35 Onest,system-ui,sans-serif;
}

.agcv1-chat-input:focus{
  border-color:#8882ee;
  box-shadow:0 0 0 3px rgba(99,91,255,.08);
}

.agcv1-chat-send{
  height:42px;
  flex:0 0 auto;
  padding:0 13px;
  border:0;
  border-radius:11px;
  background:#625aff;
  color:#fff;
  cursor:pointer;
  font:800 12px/1 Onest,system-ui,sans-serif;
}

.agcv1-chat-send:disabled{
  opacity:.55;
  cursor:wait;
}

.agcv1-chat-status{
  min-height:16px;
  margin-top:5px;
  color:#7a7e91;
  font:500 10px/1.35 Onest,system-ui,sans-serif;
}

.agcv1-chat-fallback{
  display:flex;
  justify-content:center;
  margin-top:9px;
  color:#625aff;
  text-decoration:none;
  font:700 11px/1.3 Onest,system-ui,sans-serif;
}

.agcv1-chat-launch.has-unread .agcv1-chat-dot{
  background:#27b36a!important;
}


/* AG_REVIEW_SITEWIDE_V2 */
.agcv1-chip-review{background:#eef9f5;border-color:#9fd7c3;color:#165c47}
.agcv1-chip-review:hover,.agcv1-chip-review:focus-visible{background:#dbf2e9;border-color:#5eaf90}
.agcv1-card.agcv1-review{background:linear-gradient(150deg,#f0fbf6,#fff 68%);border-color:#b1dec9}
.agcv1-card.agcv1-review .agcv1-ico{background:#d9f5e8}
@media(max-width:360px){.agcv1-home .agcv1-grid{grid-template-columns:1fr}}
/* /AG_REVIEW_SITEWIDE_V2 */
